Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[APM] Don't trigger map layout if no elements (elastic#66625)
After simplyfying the layout mechanism in elastic#66438, we made it so the `data` event handler would run even if there are no elements. This causes the `layoutstop` handler to run as well, but if we have multiple renders with no elements, multiple `layoutstop` events would by triggered after the elements were loaded, causing the map to jump around, which is especially visible with a single node. Fixes elastic#66528.
- Loading branch information