From: Alexander Ebert Date: Wed, 11 Jun 2014 10:06:49 +0000 (+0200) Subject: Work-around for missing padding-bottom in overflowed container in FF X-Git-Tag: 2.1.0_Alpha_1~725 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e3a0f1eb9ea1ea3574b1edadd25d01f64fd83cb6;p=GitHub%2FWoltLab%2FWCF.git Work-around for missing padding-bottom in overflowed container in FF Fixes #1703 --- 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); + } + } }, /**