mirror of
https://github.com/maximebf/php-debugbar.git
synced 2025-01-17 05:18:32 +01:00
Merge pull request #242 from maximebf/feat-dynamic-padding
Use original padding in calculation
This commit is contained in:
commit
d9302891c1
@ -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);
|
||||
}
|
||||
},
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user