Improve rendering of dialogs
authorMatthias Schmidt <gravatronics@live.com>
Sun, 10 May 2015 07:24:23 +0000 (09:24 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Sun, 10 May 2015 07:24:23 +0000 (09:24 +0200)
Only consider visible formSubmit elements for setting dialog content's margin-bottom.

wcfsetup/install/files/js/WCF.js

index 31486786d77a461e5c553092a56adc7a1fe3e29a..b4977b77e35e693c5b589fcb972b78711d5d1ab5 100755 (executable)
@@ -11300,9 +11300,9 @@ $.widget('ui.wcfDialog', {
                // set dialog to be fully opaque, prevents weird bugs in WebKit
                this._container.show().css('opacity', 1.0);
                
-               // handle positioning of form submit controls
+               // handle positioning of visible form submit controls
                var $heightDifference = 0;
-               if (this._content.find('.formSubmit').length) {
+               if (this._content.find('.formSubmit:visible').length) {
                        $heightDifference = this._content.find('.formSubmit').outerHeight();
                        
                        this._content.addClass('dialogForm').css({ marginBottom: $heightDifference + 'px' });