1
0
mirror of https://github.com/maximebf/php-debugbar.git synced 2025-01-16 21:08:34 +01:00

Use original padding in calculation

This commit is contained in:
Barry vd. Heuvel 2015-12-10 16:07:35 +01:00
parent 07741d84d3
commit 63d70bb54a

View File

@ -395,7 +395,8 @@ if (typeof(PhpDebugBar) == 'undefined') {
className: "phpdebugbar " + csscls('minimized'),
options: {
bodyPaddingBottom: true
bodyPaddingBottom: true,
bodyPaddingBottomHeight: parseInt($('body').css('padding-bottom'))
},
initialize: function() {
@ -817,7 +818,8 @@ if (typeof(PhpDebugBar) == 'undefined') {
*/
recomputeBottomOffset: function() {
if (this.options.bodyPaddingBottom) {
$('body').css('padding-bottom', this.$el.height());
var height = parseInt(this.$el.height()) + this.options.bodyPaddingBottomHeight;
$('body').css('padding-bottom', height);
}
},