Skip to content

[7.x] [APM] Don't trigger map layout if no elements (#66625)#66652

Merged
smith merged 1 commit intoelastic:7.xfrom
smith:backport/7.x/pr-66625
May 15, 2020
Merged

[7.x] [APM] Don't trigger map layout if no elements (#66625)#66652
smith merged 1 commit intoelastic:7.xfrom
smith:backport/7.x/pr-66625

Conversation

@smith
Copy link
Copy Markdown
Contributor

@smith smith commented May 14, 2020

Backports the following commits to 7.x:

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.
@smith smith added the backport This PR is a backport of another PR label May 14, 2020
@kibanamachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@smith smith merged commit 92dd01e into elastic:7.x May 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants