From 7200f12a928a446932d9e410f42db9700711e409 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Mon, 27 May 2013 14:46:47 +0200 Subject: [PATCH] Improved dialog width calculations --- wcfsetup/install/files/js/WCF.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) 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 -- 2.20.1