diff options
| author | Pliable Pixels <pliablepixels@gmail.com> | 2016-10-03 10:01:30 -0400 |
|---|---|---|
| committer | Pliable Pixels <pliablepixels@gmail.com> | 2016-10-03 10:01:30 -0400 |
| commit | b5b448af489008646dbae02dcdd0620d4974fa6d (patch) | |
| tree | 42dbc22932ad85ab6a43691702ac2fdf55897cd6 /www | |
| parent | 8e0730aabe1dd728f531f63114ae556023a6616f (diff) | |
fixed issue of collapsefooter messing up montage
Former-commit-id: 19c82bdd8870220bd179d71ec92a5488b8a3dead
Diffstat (limited to 'www')
| -rw-r--r-- | www/js/MontageHistoryCtrl2.js | 9 |
1 files 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); |
