From 3939bcec2267aebb10b212c710ef10912f9a75f3 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Sun, 10 Mar 2024 11:02:28 -0400 Subject: [PATCH] Fix eslint --- web/skins/classic/js/skin.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/skins/classic/js/skin.js b/web/skins/classic/js/skin.js index 1e0609969..bfc354b1d 100644 --- a/web/skins/classic/js/skin.js +++ b/web/skins/classic/js/skin.js @@ -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) {