From: vincent@cubedesigners.com Date: Thu, 1 Sep 2016 16:08:02 +0000 (+0000) Subject: done #646 @0.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=a931aae22e37b53879ee8ab7f412d77216a99a82;p=fluidbook-v3.git done #646 @0.5 --- 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,