mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
[dashboard][maps] fix 'by value' map does not fill dashboard panel on initial page load (#155554)
Fixes https://github.com/elastic/kibana/issues/155553 Following steps in issue now renders map as expected <img width="600" alt="Screen Shot 2023-04-21 at 1 18 54 PM" src="https://user-images.githubusercontent.com/373691/233717520-7e25b4a9-1639-4b5e-9dfc-3816f4f35153.png">
This commit is contained in:
parent
4eeec1865f
commit
f0106b1817
1 changed files with 2 additions and 3 deletions
|
@ -283,11 +283,10 @@ export class MbMap extends Component<Props, State> {
|
|||
}
|
||||
|
||||
_initResizerChecker() {
|
||||
this.state.mbMap?.resize(); // ensure map is sized for container prior to monitoring
|
||||
this._checker = new ResizeChecker(this._containerRef!);
|
||||
this._checker.on('resize', () => {
|
||||
if (this.state.mbMap) {
|
||||
this.state.mbMap.resize();
|
||||
}
|
||||
this.state.mbMap?.resize();
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue