【发布时间】:2014-01-10 23:01:41
【问题描述】:
在 Isotope 2.0 中,我希望元素容器能够通过溢出固定 100% 高度:自动,但是,当布局完成时,它会不断将容器的高度更改为绝对像素(因此容器中没有滚动)。
Isotope 2.0 中不再有“resizesContainer : false”。
这是我目前所拥有的:
$(document).ready(function(){
var $container = $('#content');
$container.imagesLoaded(function() {
$container.isotope({
filter : '*',
layoutMode : 'masonry',
// itemSelector: ".boxportfolio3",
resizesContainer : false,
containerStyle : {
overflow : 'auto',
},
animationOptions : {
duration : 750,
easing : 'linear',
queue : false,
}
});
$container.isotope('on', 'layoutComplete', function(a,b) {
console.log("this is not executed. why?? ");
$(".isotope").css("height", "100%");
});
});
});
【问题讨论】:
标签: jquery jquery-plugins jquery-isotope