From: Alexander Ebert Date: Fri, 10 May 2013 18:38:57 +0000 (+0200) Subject: Fixed overlay position in Firefox and Internet Explorer X-Git-Tag: 2.0.0_Beta_1~210 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0ebf91e4e6d2e6b317f81f086dc3952d68b2299a;p=GitHub%2FWoltLab%2FWCF.git Fixed overlay position in Firefox and Internet Explorer --- 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();