scale the event width when calculating if the stats table will fit

This commit is contained in:
Isaac Connor 2021-01-29 14:03:12 -05:00
parent 63a6bdaac1
commit ec1a7ec427
1 changed files with 7 additions and 0 deletions

View File

@ -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 ) {