From 0ebf91e4e6d2e6b317f81f086dc3952d68b2299a Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Fri, 10 May 2013 20:38:57 +0200 Subject: [PATCH] Fixed overlay position in Firefox and Internet Explorer --- wcfsetup/install/files/js/WCF.js | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/wcfsetup/install/files/js/WCF.js b/wcfsetup/install/files/js/WCF.js index 9b9d79f497..7c1a4c90cc 100755 --- a/wcfsetup/install/files/js/WCF.js +++ b/wcfsetup/install/files/js/WCF.js @@ -8305,13 +8305,10 @@ $.widget('ui.wcfDialog', { var $maximumHeight = $windowDimensions.height - $heightDifference - 120; this._content.css({ maxHeight: $maximumHeight + 'px' }); - // re-caculate values if container height was previously limited - if ($maximumHeight < $contentDimensions.height) { - $containerDimensions = this._container.getDimensions('outer'); - } + this._determineOverflow(); // calculate new dimensions - $contentDimensions = this._getContentDimensions($maximumHeight); + $containerDimensions = this._container.getDimensions('outer'); // move container var $leftOffset = Math.round(($windowDimensions.width - $containerDimensions.width) / 2); @@ -8335,8 +8332,6 @@ $.widget('ui.wcfDialog', { width: 'auto' }); - this._determineOverflow(); - if (!this.isOpen()) { // hide container again this._container.hide(); -- 2.20.1