summaryrefslogtreecommitdiff
path: root/www/js/MontageCtrl.js
diff options
context:
space:
mode:
authorPliable Pixels <pliablepixels@gmail.com>2016-10-11 16:16:01 -0400
committerPliable Pixels <pliablepixels@gmail.com>2016-10-11 16:16:01 -0400
commit150c7063094985cdd24a2c2a1e5b472f1b5df37e (patch)
treefc85ce8577bd4b3c8886df6b6d2dd288fcd21643 /www/js/MontageCtrl.js
parent0daca364349874a56712cf1b0a6281b1ff893bed (diff)
nothing of material value
Former-commit-id: a1ae7726d147fb48f053bc3b56b6f65074d9cec8
Diffstat (limited to 'www/js/MontageCtrl.js')
-rw-r--r--www/js/MontageCtrl.js5
1 files changed, 4 insertions, 1 deletions
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);