pass #eventVIdeo as container to scaleToFit so that it fits within available width

pull/3826/head
Isaac Connor 2024-02-07 10:37:53 -05:00
parent 3c91a2bcaf
commit 124bbc0295
1 changed files with 1 additions and 1 deletions

View File

@ -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;