diff options
| author | Pliable Pixels <pliablepixels@gmail.com> | 2019-12-10 10:57:03 -0500 |
|---|---|---|
| committer | Pliable Pixels <pliablepixels@gmail.com> | 2019-12-10 10:57:03 -0500 |
| commit | 50196b63876e11074222f1de069728b90da5bfec (patch) | |
| tree | f0b7710f45e7007b85064a9376875d24d41c7ba2 /www/js/EventCtrl.js | |
| parent | 53ce2196f05162cd0bc49e900e26738a6c3ac34b (diff) | |
meh meh
Diffstat (limited to 'www/js/EventCtrl.js')
| -rw-r--r-- | www/js/EventCtrl.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/www/js/EventCtrl.js b/www/js/EventCtrl.js index 71c973fb..967c80d0 100644 --- a/www/js/EventCtrl.js +++ b/www/js/EventCtrl.js @@ -509,6 +509,8 @@ angular.module('zmApp.controllers') var mw = parseInt(tempMon.Monitor.Width); var mh = parseInt(tempMon.Monitor.Height); + + var mo = parseInt(tempMon.Monitor.Orientation); myevents[i].Event.Rotation = ''; @@ -2854,8 +2856,6 @@ angular.module('zmApp.controllers') var tempMon = NVR.getMonitorObject(myevents[i].Event.MonitorId); if (tempMon != undefined) { - - var mw = parseInt(tempMon.Monitor.Width); var mh = parseInt(tempMon.Monitor.Height); var mo = parseInt(tempMon.Monitor.Orientation); @@ -2926,6 +2926,8 @@ angular.module('zmApp.controllers') function computeThumbnailSize(mw, mh, mo) { + + tw = Math.min(Math.round(0.35 * $rootScope.devWidth), 200); th = 150; @@ -2935,7 +2937,7 @@ angular.module('zmApp.controllers') h: 0 }; - + /* seems I really should be using strings due to horz and very but luckily parseInt will make them 0 which gets treated as "nothing to do" '0' => translate('Normal'), |
