diff options
Diffstat (limited to 'www')
| -rw-r--r-- | www/js/MonitorModalCtrl.js | 1 | ||||
| -rw-r--r-- | www/templates/monitors-modal.html | 8 |
2 files changed, 6 insertions, 3 deletions
diff --git a/www/js/MonitorModalCtrl.js b/www/js/MonitorModalCtrl.js index e7567170..01169130 100644 --- a/www/js/MonitorModalCtrl.js +++ b/www/js/MonitorModalCtrl.js @@ -1587,6 +1587,7 @@ angular.module('zmApp.controllers').controller('MonitorModalCtrl', ['$scope', '$ //$scope.presetAndControl = $translate.instant('kPresets'); $scope.ptzPresetCount = parseInt(data.control.Control.NumPresets); + //$scope.ptzPresetCount =80; NVRDataModel.debug("ConfigurePTZ Number of presets is " + $scope.ptzPresetCount); diff --git a/www/templates/monitors-modal.html b/www/templates/monitors-modal.html index 746b6232..45b3a9d1 100644 --- a/www/templates/monitors-modal.html +++ b/www/templates/monitors-modal.html @@ -67,9 +67,11 @@ </circular> </div> <div ng-if="presetOn" class="ptzpresetbuttons animated fadeInDown" id="presetlist"> - <div ng-repeat="preset in ptzPresets track by $index"> - <button class="button {{preset.icon}} button-small {{preset.style}}" style="float:left;margin-right:10px;margin-bottom:10px;" ng-click="controlPTZ(monitorId, preset.cmd);">{{preset.name}}</button> - </div> + <ion-scroll style="height:170px"> + <div ng-repeat="preset in ptzPresets track by $index"> + <button class="button {{preset.icon}} button-small {{preset.style}}" style="float:left;margin-right:10px;margin-bottom:10px;" ng-click="controlPTZ(monitorId, preset.cmd);">{{preset.name}}</button> + </div> + </ion-scroll> </div> <div class="ptzcenteredbotbutton"> <div ng-if="canZoom"> |
