summaryrefslogtreecommitdiff
path: root/www/js/EventCtrl.js
diff options
context:
space:
mode:
authorPliable Pixels <pliablepixels@gmail.com>2020-09-08 19:45:16 -0400
committerPliable Pixels <pliablepixels@gmail.com>2020-09-08 19:45:16 -0400
commitbeb9f4ca67b7de10f6985979ea4d63fe306cb6dc (patch)
treebaa425aecf024ba9b4d964e09707048e617d7dff /www/js/EventCtrl.js
parent7dfe1929c106caf71b00caa81fd4dcd8c92887a9 (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.js6
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 () {
/*