diff options
| author | Pliable Pixels <pliablepixels@gmail.com> | 2019-02-01 16:23:01 -0500 |
|---|---|---|
| committer | Pliable Pixels <pliablepixels@gmail.com> | 2019-02-01 16:23:01 -0500 |
| commit | 7066ba7daefcd27e1b8c6e6dbf843094bc8f84af (patch) | |
| tree | ba5a98aea4ce593e0213006b0ca56780be549952 /www/js | |
| parent | 51aa7ce25b17317ab98f0f335aab920d8f2f2f8b (diff) | |
#775 fix graph position
Diffstat (limited to 'www/js')
| -rw-r--r-- | www/js/MontageHistoryCtrl.js | 8 |
1 files changed, 7 insertions, 1 deletions
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: { |
