diff options
| author | Pliable Pixels <pliablepixels@gmail.com> | 2020-09-06 12:46:31 -0400 |
|---|---|---|
| committer | Pliable Pixels <pliablepixels@gmail.com> | 2020-09-06 12:46:31 -0400 |
| commit | 53fdf34c02db5ad4d6b7b249e601da967c55ed0c (patch) | |
| tree | 4ccbb387bd89bad7213fe9ca39143592d6cb9551 /www/js/EventCtrl.js | |
| parent | e399b0ac2f7806633d9d14aab9b783470eaa14d6 (diff) | |
#963 resize fixes
Diffstat (limited to 'www/js/EventCtrl.js')
| -rw-r--r-- | www/js/EventCtrl.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/www/js/EventCtrl.js b/www/js/EventCtrl.js index bb4861a2..d5ec228d 100644 --- a/www/js/EventCtrl.js +++ b/www/js/EventCtrl.js @@ -201,7 +201,7 @@ angular.module('zmApp.controllers') if (ld.eventViewThumbsSize == 'large') { NVR.debug ('Switching to big thumbs style'); $scope.thumbClass = 'large'; - $scope.rowHeightRegular = 400; + $scope.rowHeightRegular = 450; $scope.rowHeightExpanded = $scope.rowHeightRegular + 200; } else { NVR.debug ('using small thumbs style'); @@ -3004,22 +3004,22 @@ angular.module('zmApp.controllers') var ld = NVR.getLogin(); var landscape = ($rootScope.devWidth > $rootScope.devHeight) ? true:false; - var maxRowHeight = $scope.rowHeight - ($scope.thumbClass=='large'?200: 120); + var maxRowHeight = $scope.rowHeight - 120; if (ld.eventViewThumbsSize == 'large') { if (landscape) { - return calculateAspectRatioFit(mw, mh, 0.8* $rootScope.devWidth, maxRowHeight); + return calculateAspectRatioFit(mw, mh, 0.7* $rootScope.devWidth, maxRowHeight); } else { - return calculateAspectRatioFit(mw, mh, 0.5* $rootScope.devWidth, maxRowHeight); + return calculateAspectRatioFit(mw, mh, 0.4* $rootScope.devWidth, maxRowHeight); } } else { // small if (landscape) { - return calculateAspectRatioFit(mw, mh, 0.6* $rootScope.devWidth, maxRowHeight); + return calculateAspectRatioFit(mw, mh, 0.5* $rootScope.devWidth, maxRowHeight); } else { - return calculateAspectRatioFit(mw, mh, 0.4* $rootScope.devWidth, maxRowHeight); + return calculateAspectRatioFit(mw, mh, 0.3* $rootScope.devWidth, maxRowHeight); } } |
