]> _ Git - fluidbook-v3.git/commitdiff
fix #681 0:12
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Wed, 7 Sep 2016 09:21:16 +0000 (09:21 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Wed, 7 Sep 2016 09:21:16 +0000 (09:21 +0000)
js/410-features.js

index 8b102a9b053c69369f197841c87f9e1ec59795df..133d373d26d657844ee61dc0233a18985d1e8dd3 100644 (file)
@@ -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...