Skip to content

Commit 63d70bb

Browse files
committed
Use original padding in calculation
1 parent 07741d8 commit 63d70bb

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/DebugBar/Resources/debugbar.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,8 @@ if (typeof(PhpDebugBar) == 'undefined') {
395395
className: "phpdebugbar " + csscls('minimized'),
396396

397397
options: {
398-
bodyPaddingBottom: true
398+
bodyPaddingBottom: true,
399+
bodyPaddingBottomHeight: parseInt($('body').css('padding-bottom'))
399400
},
400401

401402
initialize: function() {
@@ -817,7 +818,8 @@ if (typeof(PhpDebugBar) == 'undefined') {
817818
*/
818819
recomputeBottomOffset: function() {
819820
if (this.options.bodyPaddingBottom) {
820-
$('body').css('padding-bottom', this.$el.height());
821+
var height = parseInt(this.$el.height()) + this.options.bodyPaddingBottomHeight;
822+
$('body').css('padding-bottom', height);
821823
}
822824
},
823825

0 commit comments

Comments
 (0)