From 2a1b9c18c81c0e61f026fb515fcaebcd80d4c013 Mon Sep 17 00:00:00 2001 From: Pliable Pixels Date: Sun, 30 Jun 2019 20:40:05 -0400 Subject: 1.3.066 --- www/js/MontageCtrl.js | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) (limited to 'www/js/MontageCtrl.js') diff --git a/www/js/MontageCtrl.js b/www/js/MontageCtrl.js index 9353dbe1..c2bc8d3b 100644 --- a/www/js/MontageCtrl.js +++ b/www/js/MontageCtrl.js @@ -441,22 +441,23 @@ angular.module('zmApp.controllers') } NVR.debug("All images loaded, doing image layout"); - - } - $timeout(function () { - //NVR.log("Force calling resize"); - ///pckry.reloadItems(); - ///positions is defined only if layouttype was false - //(">>> Positions is " + JSON.stringify(positions)); - if (!layouttype && positions) pckry.initShiftLayout(positions, "data-item-id"); - // now do a jiggle $timeout(function () { - NVR.debug("inside drag items:doing the jiggle and dance..."); - pckry.shiftLayout(); - //$scope.squeezeMonitors(); - }, 500); + //NVR.log("Force calling resize"); + ///pckry.reloadItems(); + ///positions is defined only if layouttype was false + //(">>> Positions is " + JSON.stringify(positions)); + if (!layouttype && positions) pckry.initShiftLayout(positions, "data-item-id"); + // now do a jiggle + $timeout(function () { + NVR.debug("inside drag items:doing the jiggle and dance..."); + pckry.shiftLayout(); + //$scope.squeezeMonitors(); + }, 500); + + }, 100); - }, 100); + } + //pckry.onresize(); -- cgit v1.2.3