mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
fixed initial layout of sense when the js is bundled and loads before the DOM
This commit is contained in:
parent
7da39857f2
commit
8a668374b1
1 changed files with 11 additions and 4 deletions
|
@ -193,11 +193,18 @@ define([
|
|||
}
|
||||
}
|
||||
|
||||
$(window).resize(function () {
|
||||
if (!delay) delay = setTimeout(update, 25);
|
||||
});
|
||||
// update at key moments in the loading process
|
||||
$(update);
|
||||
$(window).load(update);
|
||||
|
||||
// and when the window resizes (once every 30 ms)
|
||||
$(window)
|
||||
.resize(function (event) {
|
||||
if (!delay && event.target === window) {
|
||||
delay = setTimeout(update, 30);
|
||||
}
|
||||
});
|
||||
|
||||
update();
|
||||
}());
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue