From a931aae22e37b53879ee8ab7f412d77216a99a82 Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Thu, 1 Sep 2016 16:08:02 +0000 Subject: [PATCH] done #646 @0.5 --- js/410-features.js | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/js/410-features.js b/js/410-features.js index 24c363e..a774c17 100644 --- a/js/410-features.js +++ b/js/410-features.js @@ -9,12 +9,6 @@ function load_features() { cubeitresize(); // Needed so video is sized correctly in popup }); - $(".feature-blocks").masonry({ - itemSelector: ".feature-block", - columnWidth: ".small-rectangle-tall", - transitionDuration: 0, - }); - } function resizeFeaturePage() { @@ -43,6 +37,16 @@ function resizeFeatureVideoLink() { // evenly divided by the number of columns. This stops // Masonry from having gaps and mis-aligned items function resizeFeatureBlocks() { + + try{ + $(".feature-blocks").masonry('destroy'); + } + $(".feature-blocks").masonry({ + itemSelector: ".feature-block", + columnWidth: ".small-rectangle-tall", + transitionDuration: 0, + }); + // Container width is 90% of the window var ww = $(window).width(), break2cols = 1350, -- 2.39.5