From: Matthias Schmidt Date: Sun, 10 May 2015 07:24:23 +0000 (+0200) Subject: Improve rendering of dialogs X-Git-Tag: 2.1.4~25 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=dc86f7feebd757a0f1f377f96f4b7fc6618cc5fe;p=GitHub%2FWoltLab%2FWCF.git Improve rendering of dialogs Only consider visible formSubmit elements for setting dialog content's margin-bottom. --- diff --git a/wcfsetup/install/files/js/WCF.js b/wcfsetup/install/files/js/WCF.js index 31486786d7..b4977b77e3 100755 --- a/wcfsetup/install/files/js/WCF.js +++ b/wcfsetup/install/files/js/WCF.js @@ -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' });