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

Merge pull request #242 from maximebf/feat-dynamic-padding

Use original padding in calculation
This commit is contained in:
Barry vd. Heuvel 2016-01-22 13:22:23 +01:00
commit d9302891c1

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);
}
},