#13203 fix default size when open first time window

This commit is contained in:
Jonathan 2024-04-17 17:00:23 +02:00
parent 7e6a84ad45
commit 185597aaf8
1 changed files with 4 additions and 0 deletions

View File

@ -434,6 +434,10 @@ ui_include_time_picker(true);
var browserZoomLevel = window.outerWidth / window.innerWidth; var browserZoomLevel = window.outerWidth / window.innerWidth;
let height = ($('#chart-modal').height() + margin) * browserZoomLevel; let height = ($('#chart-modal').height() + margin) * browserZoomLevel;
let width = 800 * browserZoomLevel; let width = 800 * browserZoomLevel;
if (width === 800) {
width = 1000;
height = 550;
}
window.resizeTo(width, height); window.resizeTo(width, height);
} }