From 7066ba7daefcd27e1b8c6e6dbf843094bc8f84af Mon Sep 17 00:00:00 2001 From: Pliable Pixels Date: Fri, 1 Feb 2019 16:23:01 -0500 Subject: #775 fix graph position --- www/js/MontageHistoryCtrl.js | 8 +++++++- www/templates/montage-history.html | 31 ++++++++++++++++++++----------- 2 files changed, 27 insertions(+), 12 deletions(-) (limited to 'www') diff --git a/www/js/MontageHistoryCtrl.js b/www/js/MontageHistoryCtrl.js index 6a59f5d0..4b76ad96 100644 --- a/www/js/MontageHistoryCtrl.js +++ b/www/js/MontageHistoryCtrl.js @@ -960,10 +960,14 @@ angular.module('zmApp.controllers').controller('zmApp.MontageHistoryCtrl', ['$sc NVR.debug("Player is ready"); $timeout(function () { m.Monitor.handle.pause(); - m.Monitor.handle.setPlayback(NVR.getLogin().videoPlaybackSpeed); + + $timeout(function() { + m.Monitor.handle.setPlayback(NVR.getLogin().videoPlaybackSpeed); m.Monitor.handle.play(); NVR.debug("*** Invoking play"); playerReady = true; + },300); + }, 300); @@ -1371,7 +1375,9 @@ angular.module('zmApp.controllers').controller('zmApp.MontageHistoryCtrl', ['$sc //console.log("Graphing on " + "eventchart-" + mid); var cv = document.getElementById("eventchart-" + mid); var ctx = cv.getContext("2d"); + // ctx.height=30; frameoptions = { + maintainAspectRatio: false, responsive: true, legend: false, title: { diff --git a/www/templates/montage-history.html b/www/templates/montage-history.html index c15fe7d9..f93908b7 100644 --- a/www/templates/montage-history.html +++ b/www/templates/montage-history.html @@ -110,20 +110,29 @@ on-swipe-left="toggleControls()" on-swipe-right="toggleControls()" img-spinner-w="{{monitor.Monitor.Width}}" img-spinner-h="{{monitor.Monitor.Height}}" /> + +
+ +
+ + + +
+ +
+ +
+
+ -
-
- -
-
- -
-
+
{{'kPleaseWait' | translate}}
-- cgit v1.2.3