Skip to content

Sankey tooltip calc relative to div.svg-container rather than gd #2027

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

Merged
merged 1 commit into from
Sep 20, 2017

Conversation

monfera
Copy link
Contributor

@monfera monfera commented Sep 20, 2017

Fixes remaining issue of #2014

The fix is that Sankey tooltip positioning be relative to div.svg-container rather than gd, a difference that's significant if there's a margin specified on (or is effective on) div.svg-container.

@monfera monfera force-pushed the sankey-margined-tooltip branch from b4e6aa2 to 1658829 Compare September 20, 2017 23:06
@monfera monfera self-assigned this Sep 20, 2017
@monfera monfera added status: reviewable bug something broken labels Sep 20, 2017
@alexcjohnson
Copy link
Collaborator

Looks good, thanks - 💃

I'll also make an issue over in streambed for us to stop diving into sub-elements of the plot <div> to reduce the chances of stuff like this in the future.

Note though that at some point we need to find alternatives to all of these getBoundingClientRect calls - see eg #2003 (comment) and the other issues it points to.

Copy link
Collaborator

@alexcjohnson alexcjohnson left a comment

Choose a reason for hiding this comment

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

💃

@monfera monfera merged commit 60b445d into master Sep 20, 2017
@monfera monfera deleted the sankey-margined-tooltip branch September 20, 2017 23:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something broken
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants