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 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'www/js/MontageHistoryCtrl.js') 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: { -- cgit v1.2.3