Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Maps] reposition tooltip when tooltip size changes #43152

Merged
merged 4 commits into from
Aug 13, 2019

Conversation

nreese
Copy link
Contributor

@nreese nreese commented Aug 12, 2019

Fixes bug where tooltip content gets clipped by map boundary when dynamic content loads, like when the properties load. This is really needed by #43141 because the create filter form is pretty tall and can result in cut off tooltips quite often

Fixes issues like below by having map box recalculate the tooltip anchor when tooltip content changes

Screen Shot 2019-08-12 at 2 27 33 PM

@nreese nreese added release_note:fix [Deprecated-Use Team:Presentation]Team:Geo Former Team Label for Geo Team. Now use Team:Presentation v8.0.0 v7.4.0 labels Aug 12, 2019
@nreese nreese requested a review from thomasneirynck August 12, 2019 20:33
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-gis

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Copy link
Contributor

@thomasneirynck thomasneirynck left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice fix, but I would suggest to move the handling up to the main mb/view component, and not so deep into the helper FeatureProperties-component. I think it would make the code look less tightly coupled.

@nreese nreese requested a review from thomasneirynck August 13, 2019 16:30
@elasticmachine
Copy link
Contributor

💔 Build Failed

@elasticmachine
Copy link
Contributor

💔 Build Failed

@nreese
Copy link
Contributor Author

nreese commented Aug 13, 2019

jenkins, test this

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@nreese nreese merged commit b527c00 into elastic:master Aug 13, 2019
nreese added a commit to nreese/kibana that referenced this pull request Aug 13, 2019
* [Maps] reposition tooltip when tooltip size changes

* review feedback

* fix jest tests

* add check to ensure tooltip state location is still provided
nreese added a commit that referenced this pull request Aug 13, 2019
* [Maps] reposition tooltip when tooltip size changes

* review feedback

* fix jest tests

* add check to ensure tooltip state location is still provided
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Deprecated-Use Team:Presentation]Team:Geo Former Team Label for Geo Team. Now use Team:Presentation release_note:fix v7.4.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants