We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07741d8 commit 63d70bbCopy full SHA for 63d70bb
src/DebugBar/Resources/debugbar.js
@@ -395,7 +395,8 @@ if (typeof(PhpDebugBar) == 'undefined') {
395
className: "phpdebugbar " + csscls('minimized'),
396
397
options: {
398
- bodyPaddingBottom: true
+ bodyPaddingBottom: true,
399
+ bodyPaddingBottomHeight: parseInt($('body').css('padding-bottom'))
400
},
401
402
initialize: function() {
@@ -817,7 +818,8 @@ if (typeof(PhpDebugBar) == 'undefined') {
817
818
*/
819
recomputeBottomOffset: function() {
820
if (this.options.bodyPaddingBottom) {
- $('body').css('padding-bottom', this.$el.height());
821
+ var height = parseInt(this.$el.height()) + this.options.bodyPaddingBottomHeight;
822
+ $('body').css('padding-bottom', height);
823
}
824
825
0 commit comments