#12999 resize window when change scale
This commit is contained in:
parent
09880cadf1
commit
749fd9243c
|
@ -424,7 +424,10 @@ ui_include_time_picker(true);
|
||||||
$("#"+active+"-spinner").hide();
|
$("#"+active+"-spinner").hide();
|
||||||
$("#"+active+"-content").append(data);
|
$("#"+active+"-content").append(data);
|
||||||
if (active === 'tabs-chart-module-graph' || active === 'tabs-chart-period-graph') {
|
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;
|
let pg = 0;
|
||||||
|
|
Loading…
Reference in New Issue