Skip to content

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

Merged
monfera merged 1 commit into
masterfrom
sankey-margined-tooltip
Sep 20, 2017
Merged

Sankey tooltip calc relative to div.svg-container rather than gd#2027
monfera merged 1 commit into
masterfrom
sankey-margined-tooltip

Conversation

@monfera
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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