From 8134a8a1ffb6fb3beca78653145974fcf32004ab Mon Sep 17 00:00:00 2001 From: Pliable Pixels Date: Fri, 2 Sep 2016 14:41:07 -0400 Subject: 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 --- www/js/MontageCtrl.js | 2 ++ 1 file changed, 2 insertions(+) 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 -- cgit v1.2.3