summaryrefslogtreecommitdiff
path: root/www/js/MontageCtrl.js
diff options
context:
space:
mode:
authorPliable Pixels <pliablepixels@gmail.com>2016-09-02 14:41:07 -0400
committerPliable Pixels <pliablepixels@gmail.com>2016-09-02 14:41:07 -0400
commit8134a8a1ffb6fb3beca78653145974fcf32004ab (patch)
treec0b5bfe555fab0cb519ef52e4c7871c133cdc948 /www/js/MontageCtrl.js
parent482302d909fcb299098654b130cab54d1ad6740f (diff)
scroll to top when size buttons turn on - so you don't need to wonder what just happened after pressing the resize button
Former-commit-id: 56f4e568743b7675eeb840742f8bbff3f2281b6f
Diffstat (limited to 'www/js/MontageCtrl.js')
-rw-r--r--www/js/MontageCtrl.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/www/js/MontageCtrl.js b/www/js/MontageCtrl.js
index 73de328b..9e18c3f9 100644
--- a/www/js/MontageCtrl.js
+++ b/www/js/MontageCtrl.js
@@ -789,7 +789,9 @@ angular.module('zmApp.controllers').controller('zmApp.MontageCtrl', ['$scope', '
$scope.toggleSizeButtons = function () {
$scope.showSizeButtons = !$scope.showSizeButtons;
+
ZMDataModel.zmDebug("toggling size buttons:" + $scope.showSizeButtons);
+ if ($scope.showSizeButtons) $ionicScrollDelegate.$getByHandle("montage-delegate").scrollTop();
};
// minimal has to be beforeEnter or header won't hide