-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
Map filter not set appropriately when spy panel is open #13678
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this works good.
@ppisljar and I discussed the other resize issue (collapsing doesn't trigger resize). The issue seems to be we're listening on the node containing the entire -tree, not just the container-node of the actual visualization. Resolving this may also alleviate the need to traverse up the element list.
This approach here is a pretty good heuristic though to get a meaningful width/height when the container has 0/0 dimensions. It will get a reasonable value, rather than using some fixed dimension.
Does this issue also prevent the circles from showing up? Or are you referring to only the whitespace (e.g. this issue - #13137)? |
@stacey-gammon It is effecting both. Leaflet is created in an element with 0 height so it does not display the markers. Simply calling |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you file an issue for the new problems revealed just so we can keep track? Unless there already is one.
otherwise, lgtm.
@stacey-gammon new issue created - #13705 |
* get dimensions from parent elements when map has not height or width * clean up test variable names
* get dimensions from parent elements when map has not height or width * clean up test variable names
Fixes #13625
When a map visualization is added to a dashboard with the spy panel open, the leaflet map element has not height because the spy panel fills the entire panel. This causes problems because
getUntrimmedBounds
returnedundefined
. Instead of returningundefined
,getUntrimmedBounds
can calculate the map dimensions based on the parent element dimensions.Fixing this issue revealed a new issue. Kibana_map does not call resize when the spy panel is opened/closed. This new issue should be resolved in a separate PR since its solution could effect other visualizations.