Improved dialog width calculations
authorAlexander Ebert <ebert@woltlab.com>
Mon, 27 May 2013 12:46:47 +0000 (14:46 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Mon, 27 May 2013 12:46:47 +0000 (14:46 +0200)
wcfsetup/install/files/js/WCF.js

index dfebe12c00fdd26eeb9322264cf07c365bc75d16..eefea2ea78bb9a6ec00cc4ba1d4b2d7d8ae32c7b 100755 (executable)
@@ -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