projects
/
GitHub
/
WoltLab
/
WCF.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d5a84e2
)
Work-around for missing padding-bottom in overflowed container in FF
author
Alexander Ebert
<ebert@woltlab.com>
Wed, 11 Jun 2014 10:06:49 +0000
(12:06 +0200)
committer
Alexander Ebert
<ebert@woltlab.com>
Wed, 11 Jun 2014 10:06:49 +0000
(12:06 +0200)
Fixes #1703
wcfsetup/install/files/js/WCF.js
patch
|
blob
|
blame
|
history
diff --git
a/wcfsetup/install/files/js/WCF.js
b/wcfsetup/install/files/js/WCF.js
index b0638d76b5f241d2d209da54a22ed39398865111..41ca18cc2787382ebd5cab18a6dbf4be1a164c09 100755
(executable)
--- 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);
+ }
+ }
},
/**