diff --git a/qui/controls/windows/Popup.js b/qui/controls/windows/Popup.js index 4a50d1629e79c5b22975a564150b8e9ed327025f..b1fdecb636c76d0ff5c0161e1c0550a08a51f4c1 100644 --- a/qui/controls/windows/Popup.js +++ b/qui/controls/windows/Popup.js @@ -412,6 +412,14 @@ define('qui/controls/windows/Popup', needle, function (QUI, height = this.getOpeningHeight(), width = this.getOpeningWidth(); + var ios = SystemUtils.iOSversion(); + + if (ios) { + if (doc_size.y > QUI.getBodySize().y) { + doc_size.y = QUI.getBodySize().y; + } + } + var top = (doc_size.y - height) / 2; var left = (doc_size.x - width) / 2; @@ -435,8 +443,6 @@ define('qui/controls/windows/Popup', needle, function (QUI, } // ios fix - var ios = SystemUtils.iOSversion(); - if (ios) { top = top + (document.body.getStyle('top').toInt() * -1);