From e3a0f1eb9ea1ea3574b1edadd25d01f64fd83cb6 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Wed, 11 Jun 2014 12:06:49 +0200 Subject: [PATCH] Work-around for missing padding-bottom in overflowed container in FF Fixes #1703 --- wcfsetup/install/files/js/WCF.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/wcfsetup/install/files/js/WCF.js b/wcfsetup/install/files/js/WCF.js index b0638d76b5..41ca18cc27 100755 --- a/wcfsetup/install/files/js/WCF.js +++ b/wcfsetup/install/files/js/WCF.js @@ -10296,9 +10296,20 @@ $.widget('ui.wcfDialog', { }); if (this._content.height() < $contentHeight) { + $overflow = 'auto'; this._content.css('overflow', 'auto'); } } + + // Firefox ignores padding-bottom for elements within an overflowing container + if ($.browser.mozilla && !$.browser.mobile) { + if ($overflow === 'auto') { + this._content.children('div').css('margin-bottom', this._content.css('padding-bottom')); + } + else { + this._content.children('div').css('margin-bottom', false); + } + } }, /** -- 2.20.1