私はこのレイアウトを使用しようとしています:石積みの列のシフト
メインアイテムをクリックすると、これが機能します。
$container.find('.wrapper').click(function(){
$(this).css({ height: "+=100" });
// note that element is passed in, not jQuery object
$container.isotope( 'shiftColumnOfItem', this );
});
これが私が望むものです(子をクリックするとサイズの変更がトリガーされます):
$container.find('.wrapper li').click(function(){
var closestwrapper = $(this).closest('.wrapper');
closestwrapper.css({ height: "+=100" });
// note that element is passed in, not jQuery object
$container.isotope( 'shiftColumnOfItem', this );
});
サイズは変わりますが、列は移動しません。closestwrapper
の代わりにも使ってみましthis
た。
デモページには、私が理解できないコメントがあります:
// note that element is passed in, not jQuery object