Merge branch 'ent-13066-problema-con-modal-en-resoluciones-de-pantalla-retina' into 'develop'

Ent 13066 Problema con modal en resoluciones de pantalla retina

See merge request artica/pandorafms!7023
This commit is contained in:
Rafael Ameijeiras 2024-03-14 08:50:25 +00:00
commit 3546c39aef
1 changed files with 1 additions and 1 deletions

View File

@ -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);