FIX 11.0: computation of the bottom margin of <body> returns NaN because body is not loaded yet

This commit is contained in:
FlorianMortgat 2020-07-25 11:05:05 +02:00
parent 0ebed529e1
commit 93348630bf

View File

@ -409,12 +409,11 @@ if (typeof(PhpDebugBar) == 'undefined') {
className: "phpdebugbar " + csscls('minimized'),
options: {
bodyMarginBottom: true,
bodyMarginBottomHeight: parseInt($('body').css('margin-bottom'))
},
initialize: function() {
this.options = {
bodyMarginBottom: true,
bodyMarginBottomHeight: parseInt($('body').css('margin-bottom')),
};
this.controls = {};
this.dataMap = {};
this.datasets = {};