Work-around for missing padding-bottom in overflowed container in FF
authorAlexander Ebert <ebert@woltlab.com>
Wed, 11 Jun 2014 10:06:49 +0000 (12:06 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Wed, 11 Jun 2014 10:06:49 +0000 (12:06 +0200)
Fixes #1703

wcfsetup/install/files/js/WCF.js

index b0638d76b5f241d2d209da54a22ed39398865111..41ca18cc2787382ebd5cab18a6dbf4be1a164c09 100755 (executable)
@@ -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);
+                       }
+               }
        },
        
        /**