Skip to content

Commit

Permalink
#997 compute rowHeight for all monitors
Browse files Browse the repository at this point in the history
  • Loading branch information
pliablepixels committed Oct 20, 2020
1 parent 0bfbc97 commit 53f673e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion www/js/EventCtrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ angular.module('zmApp.controllers')
var tempMonHeight = 0;
monitorHeight = 0;
for (var i=0; i < $scope.monitors.length; i++) {
if ($scope.monitors[i] != undefined && $scope.monitors[i].Monitor.isChecked) {
if ($scope.monitors[i] != undefined) {
var mw = $scope.monitors[i].Monitor.Width;
var mh = $scope.monitors[i].Monitor.Height;
var mo = $scope.monitors[i].Monitor.Orientation;
Expand All @@ -163,6 +163,7 @@ angular.module('zmApp.controllers')
}
}
eventRowHeight = rowHeight;
console.log ('*************************'+eventRowHeight);
}

//we come here is TZ is updated after the view loads
Expand Down

0 comments on commit 53f673e

Please sign in to comment.