1
0
mirror of https://github.com/maximebf/php-debugbar.git synced 2025-06-11 08:35:03 +02:00

Fix resize (#628)

This commit is contained in:
Barry vd. Heuvel
2024-03-20 12:47:09 +01:00
committed by GitHub
parent 189f791e94
commit 3668109b2e

View File

@ -449,8 +449,8 @@ if (typeof(PhpDebugBar) == 'undefined') {
resize: function() { resize: function() {
var contentSize = this.respCSSSize; var contentSize = this.respCSSSize;
if (this.respCSSSize == 0) { if (this.respCSSSize == 0) {
this.$header.find("> div > *:visible").each(function () { this.$header.find("> *:visible").each(function () {
contentSize += $(this).outerWidth(); contentSize += $(this).outerWidth(true);
}); });
} }
@ -1011,6 +1011,7 @@ if (typeof(PhpDebugBar) == 'undefined') {
self.getControl(key).set('data', d); self.getControl(key).set('data', d);
} }
}); });
self.resize();
}, },
/** /**