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

Trigger resize on new dataset (#446)

When a new dataset is loaded, the layout can change. Trigger the resize to make it fit directly.
This commit is contained in:
Barry vd. Heuvel 2020-05-06 09:03:35 +02:00 committed by GitHub
parent 3709448d5a
commit 936807d1e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -944,6 +944,7 @@ if (typeof(PhpDebugBar) == 'undefined') {
var self = this;
this.openHandler.load(id, function(data) {
self.addDataSet(data, id, suffix, show);
self.resize();
callback && callback(data);
});
},