From 35ff983cc8e1b391889be7e6f85650fd00c4a1d5 Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Wed, 7 Sep 2016 09:21:16 +0000 Subject: [PATCH] fix #681 0:12 --- js/410-features.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) 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... -- 2.39.5