From 150c7063094985cdd24a2c2a1e5b472f1b5df37e Mon Sep 17 00:00:00 2001 From: Pliable Pixels Date: Tue, 11 Oct 2016 16:16:01 -0400 Subject: nothing of material value Former-commit-id: a1ae7726d147fb48f053bc3b56b6f65074d9cec8 --- www/js/MontageCtrl.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'www/js/MontageCtrl.js') diff --git a/www/js/MontageCtrl.js b/www/js/MontageCtrl.js index 0681d832..1e13dd80 100644 --- a/www/js/MontageCtrl.js +++ b/www/js/MontageCtrl.js @@ -162,12 +162,14 @@ angular.module('zmApp.controllers') imagesLoaded(elem).on('progress', function (instance, img) { progressCalled = true; + // if (layouttype) $timeout (function(){layout(pckry);},100); }); imagesLoaded(elem).on('always', function () { //console.log ("******** ALL IMAGES LOADED"); + // $scope.$digest(); NVRDataModel.debug("All images loaded"); $scope.areImagesLoading = false; @@ -219,6 +221,7 @@ angular.module('zmApp.controllers') NVRDataModel.debug("All images loaded, doing image layout"); $timeout(function () { pckry.initShiftLayout(positions, 'data-item-id'); + //$scope.$digest(); }, 0); } $timeout(function () { @@ -226,7 +229,7 @@ angular.module('zmApp.controllers') pckry.shiftLayout(); }, zm.packeryTimer); // don't ask - + pckry.onresize(); }, zm.packeryTimer); -- cgit v1.2.3