From: Alexander Ebert Date: Mon, 27 May 2013 12:46:47 +0000 (+0200) Subject: Improved dialog width calculations X-Git-Tag: 2.0.0_Beta_1~46^2~2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7200f12a928a446932d9e410f42db9700711e409;p=GitHub%2FWoltLab%2FWCF.git Improved dialog width calculations --- diff --git a/wcfsetup/install/files/js/WCF.js b/wcfsetup/install/files/js/WCF.js index dfebe12c00..eefea2ea78 100755 --- a/wcfsetup/install/files/js/WCF.js +++ b/wcfsetup/install/files/js/WCF.js @@ -8421,13 +8421,10 @@ $.widget('ui.wcfDialog', { this._content.removeClass('dialogForm').css({ marginBottom: '0px' }); } - // force 800px or 80% width + // force 800px or 90% width var $windowDimensions = $(window).getDimensions(); - if ($windowDimensions.width * 0.8 > 800) { - this._content.css('maxWidth', '800px'); - } - else { - this._content.css('maxWidth', '80%'); + if ($windowDimensions.width * 0.9 > 800) { + this._container.css('maxWidth', '800px'); } // calculate dimensions