summaryrefslogtreecommitdiff
path: root/www/js/app.js
diff options
context:
space:
mode:
authorPliable Pixels <pliablepixels@gmail.com>2020-09-06 15:05:44 -0400
committerPliable Pixels <pliablepixels@gmail.com>2020-09-06 15:05:44 -0400
commit8585728630a2203c9305678fc690d65b93b62a3d (patch)
tree9cd2b64134cc0a8e59c7f8dec6208f9d36482cd4 /www/js/app.js
parent53fdf34c02db5ad4d6b7b249e601da967c55ed0c (diff)
#963 2 col format for small, 1 col for large
Diffstat (limited to 'www/js/app.js')
-rwxr-xr-xwww/js/app.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/www/js/app.js b/www/js/app.js
index 8799784d..f85a5571 100755
--- a/www/js/app.js
+++ b/www/js/app.js
@@ -1480,6 +1480,9 @@ angular.module('zmApp', [
$rootScope.devWidth = ((window.innerWidth > 0) ? window.innerWidth : screen.width);
$rootScope.devHeight = ((window.innerHeight > 0) ? window.innerHeight : screen.height);
$rootScope.videoHeight = $rootScope.devHeight - 20;
+
+ $rootScope.devWidth *= pixelRatio;
+ $rootScope.devHeight *= pixelRatio;
NVR.debug("resize/orient: " + $rootScope.devWidth + "(w) * " + $rootScope.devHeight+"(h)");