From b5b448af489008646dbae02dcdd0620d4974fa6d Mon Sep 17 00:00:00 2001 From: Pliable Pixels Date: Mon, 3 Oct 2016 10:01:30 -0400 Subject: fixed issue of collapsefooter messing up montage Former-commit-id: 19c82bdd8870220bd179d71ec92a5488b8a3dead --- www/js/MontageHistoryCtrl2.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/www/js/MontageHistoryCtrl2.js b/www/js/MontageHistoryCtrl2.js index 039e1ec4..d9107a0f 100644 --- a/www/js/MontageHistoryCtrl2.js +++ b/www/js/MontageHistoryCtrl2.js @@ -223,12 +223,14 @@ angular.module('zmApp.controllers').controller('zmApp.MontageHistoryCtrl', ['$sc console.log("REDOING PACKERY & DRAG"); if (pckry !== undefined) $timeout(function () { - pckry.reloadItems(); + draggies.forEach(function (drag) { drag.destroy(); }); + draggies = []; + pckry.reloadItems(); pckry.getItemElements().forEach(function (itemElem) { draggie = new Draggabilly(itemElem); pckry.bindDraggabillyEvents(draggie); @@ -237,9 +239,10 @@ angular.module('zmApp.controllers').controller('zmApp.MontageHistoryCtrl', ['$sc }); $timeout(function () { - pckry.onresize(); + console.log (">>>>> layouting"); + //pckry.onresize(); pckry.layout(); - }, zm.packeryTimer); + }, 100); }, 500); -- cgit v1.2.3