Fix eslint

pull/3862/head
Isaac Connor 2024-03-10 11:02:28 -04:00
parent b647280766
commit 3939bcec22
1 changed files with 3 additions and 3 deletions

View File

@ -613,12 +613,12 @@ function scaleToFit(baseWidth, baseHeight, scaleEl, bottomEl, container) {
let newHeight = viewPort.height() - (bottomLoc - scaleEl.outerHeight(true));
console.log("newHeight = " + viewPort.height() +" - " + bottomLoc + ' - ' + scaleEl.outerHeight(true)+'='+newHeight);
let newWidth = ratio * newHeight;
// Let's recalculate everything and reduce the height a little. Necessary if "padding" is specified for "wrapperEventVideo"
padding = parseInt(container.css("padding-left")) + parseInt(container.css("padding-right"));
newWidth -= padding;
newHeight = newWidth / ratio ;
newHeight = newWidth / ratio;
console.log("newWidth = ", newWidth, "container width:", container.innerWidth());
if (newHeight < 0) {