diff options
| author | Pliable Pixels <pliablepixels@gmail.com> | 2020-09-08 19:45:16 -0400 |
|---|---|---|
| committer | Pliable Pixels <pliablepixels@gmail.com> | 2020-09-08 19:45:16 -0400 |
| commit | beb9f4ca67b7de10f6985979ea4d63fe306cb6dc (patch) | |
| tree | baa425aecf024ba9b4d964e09707048e617d7dff /www/js/EventCtrl.js | |
| parent | 7dfe1929c106caf71b00caa81fd4dcd8c92887a9 (diff) | |
#970 recompute device w/h on entry into events - needed only when you start in events view on app start. earlier dimensions are not accurate, leading to whitespace till you rotate
Diffstat (limited to 'www/js/EventCtrl.js')
| -rw-r--r-- | www/js/EventCtrl.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/www/js/EventCtrl.js b/www/js/EventCtrl.js index 2a75cccc..23fda099 100644 --- a/www/js/EventCtrl.js +++ b/www/js/EventCtrl.js @@ -209,6 +209,12 @@ angular.module('zmApp.controllers') broadcastHandles = []; }); + $scope.$on('$ionicView.afterEnter', function () { + // don't know why but on app start, dimensions are wrong + NVR.computeDeviceSize(); + }); + + $scope.$on('$ionicView.beforeEnter', function () { /* |
