Skip to content

Fix hover label after resize bug - #631

Merged
etpinard merged 2 commits into
masterfrom
hover-resize-fix
Jun 13, 2016
Merged

Fix hover label after resize bug#631
etpinard merged 2 commits into
masterfrom
hover-resize-fix

Conversation

@etpinard

Copy link
Copy Markdown
Contributor

fixes#606

by grabbing refs to x/y axis using Axes.getFromId instead of looking into fullLayout._plots -
as it was done before commit 858a338 .

But really, the axis refs in fullLayout._plots should always be up-to-date. A future maintenance PR should address this.

- looks like fullLayout._plots does not get updated properly
on resize. Fixing that deserves a PR of its own.
- this commit reverts to the pre-#575 behavior

// TODO make sure that fullLayout_plots axis refs
// get updated properly so that we don't have
// to use Axes.getFromId in general.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Can you open an issue for this so we don't forget?

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

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

Sure. Done in #634

@mdtusz

Copy link
Copy Markdown
Contributor

💃

@etpinard
etpinard merged commit d5c220f into masterJun 13, 2016
@etpinard
etpinard deleted the hover-resize-fix branch June 13, 2016 17:50
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugsomething broken

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Incorrect hover label position after resize

2 participants

@etpinard@mdtusz