From 83e9332e53843d7833fa4aa8d6c9996e5645dae0 Mon Sep 17 00:00:00 2001 From: Daniel Cebrian Date: Wed, 13 Mar 2024 16:53:43 +0100 Subject: [PATCH] #13066 fixed modal in retine screen --- pandora_console/operation/agentes/stat_win.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora_console/operation/agentes/stat_win.php b/pandora_console/operation/agentes/stat_win.php index a944588040..e18b255089 100644 --- a/pandora_console/operation/agentes/stat_win.php +++ b/pandora_console/operation/agentes/stat_win.php @@ -431,7 +431,7 @@ ui_include_time_picker(true); margin = 50; } - var browserZoomLevel = (Math.round(window.devicePixelRatio * 100)/100); + var browserZoomLevel = window.outerWidth / window.innerWidth; let height = ($('#chart-modal').height() + margin) * browserZoomLevel; let width = 800 * browserZoomLevel; window.resizeTo(width, height);