mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-27 15:54:29 +02:00
#12999 fixed window in firefox
This commit is contained in:
parent
df92200c09
commit
b96cd85b09
@ -424,8 +424,15 @@ ui_include_time_picker(true);
|
||||
$("#"+active+"-spinner").hide();
|
||||
$("#"+active+"-content").append(data);
|
||||
if (active === 'tabs-chart-module-graph' || active === 'tabs-chart-period-graph') {
|
||||
let margin = 100;
|
||||
if (navigator.userAgent.indexOf("Chrome") != -1) {
|
||||
margin = 100;
|
||||
} else if (navigator.userAgent.indexOf("Firefox") != -1) {
|
||||
margin = 50;
|
||||
}
|
||||
|
||||
var browserZoomLevel = (Math.round(window.devicePixelRatio * 100)/100);
|
||||
let height = ($('#chart-modal').height() + 100) * browserZoomLevel;
|
||||
let height = ($('#chart-modal').height() + margin) * browserZoomLevel;
|
||||
let width = 800 * browserZoomLevel;
|
||||
window.resizeTo(width, height);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user