From: vincent@cubedesigners.com Date: Wed, 7 Sep 2016 09:21:16 +0000 (+0000) Subject: fix #681 0:12 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=35ff983cc8e1b391889be7e6f85650fd00c4a1d5;p=fluidbook-v3.git fix #681 0:12 --- diff --git a/js/410-features.js b/js/410-features.js index 8b102a9..133d373 100644 --- a/js/410-features.js +++ b/js/410-features.js @@ -49,11 +49,7 @@ function resizeFeatureBlocks() { container.masonry('destroy'); } - container.masonry({ - itemSelector: ".feature-block", - columnWidth: ".small-rectangle-tall", - transitionDuration: 0, - }); + // Container width is 90% of the window var ww = $(window).width(), @@ -69,6 +65,12 @@ function resizeFeatureBlocks() { containerWidth = Math.floor($('main').width() * 0.9 / cols) * cols; container.width(containerWidth); + + container.masonry({ + itemSelector: ".feature-block", + columnWidth: ".small-rectangle-tall", + transitionDuration: 0, + }); } // Switch the video URL to autoplay so the video starts playing...