pass #eventVIdeo as container to scaleToFit so that it fits within available width
parent
3c91a2bcaf
commit
124bbc0295
|
@ -271,7 +271,7 @@ function changeScale() {
|
|||
const bottomEl = $j('#replayStatus');
|
||||
|
||||
if (!scale) {
|
||||
const newSize = scaleToFit(eventData.Width, eventData.Height, eventViewer, bottomEl);
|
||||
const newSize = scaleToFit(eventData.Width, eventData.Height, eventViewer, bottomEl, $j('#eventVideo'));
|
||||
newWidth = newSize.width;
|
||||
newHeight = newSize.height;
|
||||
scale = newSize.autoScale;
|
||||
|
|
Loading…
Reference in New Issue