summaryrefslogtreecommitdiff
path: root/www/js/EventCtrl.js
diff options
context:
space:
mode:
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 () {
/*