#12999 resize window when change scale

This commit is contained in:
Daniel Cebrian 2024-03-08 09:21:09 +01:00
parent 09880cadf1
commit 749fd9243c
1 changed files with 4 additions and 1 deletions

View File

@ -424,7 +424,10 @@ ui_include_time_picker(true);
$("#"+active+"-spinner").hide();
$("#"+active+"-content").append(data);
if (active === 'tabs-chart-module-graph' || active === 'tabs-chart-period-graph') {
window.resizeTo(800, ($('#chart-modal').height() + 100));
var browserZoomLevel = (Math.round(window.devicePixelRatio * 100)/100);
let height = ($('#chart-modal').height() + 50) * browserZoomLevel;
let width = 800 * browserZoomLevel;
window.resizeTo(width, height);
}
let pg = 0;