From dc86f7feebd757a0f1f377f96f4b7fc6618cc5fe Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Sun, 10 May 2015 09:24:23 +0200 Subject: [PATCH] Improve rendering of dialogs Only consider visible formSubmit elements for setting dialog content's margin-bottom. --- wcfsetup/install/files/js/WCF.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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' }); -- 2.20.1