Skip to content

Commit

Permalink
[dashboard][maps] fix 'by value' map does not fill dashboard panel on…
Browse files Browse the repository at this point in the history
… initial page load (#155554)

Fixes #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">
  • Loading branch information
nreese authored Apr 21, 2023
1 parent 4eeec18 commit f0106b1
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
}

Expand Down

0 comments on commit f0106b1

Please sign in to comment.