diff options
| author | Pliable Pixels <pliablepixels@gmail.com> | 2016-09-02 14:41:07 -0400 |
|---|---|---|
| committer | Pliable Pixels <pliablepixels@gmail.com> | 2016-09-02 14:41:07 -0400 |
| commit | 8134a8a1ffb6fb3beca78653145974fcf32004ab (patch) | |
| tree | c0b5bfe555fab0cb519ef52e4c7871c133cdc948 /www/js/MontageCtrl.js | |
| parent | 482302d909fcb299098654b130cab54d1ad6740f (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.js | 2 |
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 |
