From ec1a7ec427fe525d20a275048b57099f2d23d69f Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Fri, 29 Jan 2021 14:03:12 -0500 Subject: [PATCH] scale the event width when calculating if the stats table will fit --- web/skins/classic/views/js/event.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/web/skins/classic/views/js/event.js b/web/skins/classic/views/js/event.js index ba1e86ecb..4f0ccb355 100644 --- a/web/skins/classic/views/js/event.js +++ b/web/skins/classic/views/js/event.js @@ -837,7 +837,14 @@ function getStat() { function onStatsResize(vidwidth) { var minWidth = 300; // An arbitrary value in pixels used to hide the stats table + var scale = $j('#scale').val(); + + if ( parseInt(scale) ) { + vidWidth = vidWidth * (scale/100); + } + var width = $j(window).width() - vidwidth; + //console.log("Width: " + width + " = window.width " + $j(window).width() + "- vidWidth" + vidwidth); // Hide the stats table if we have run out of room to show it properly if ( width < minWidth ) {