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

Fix automargin regression for superimposed subplots #3566

Merged
merged 1 commit into from
Feb 25, 2019

Conversation

etpinard
Copy link
Contributor

fixes #3561 - a fixup of #3510

cc @plotly/plotly_js

@nicolaskruchten see updated codepen:

... so that we avoid infinite loops on graphs with
    superimposed subplots
@etpinard etpinard added bug something broken status: reviewable labels Feb 21, 2019
@antoinerg
Copy link
Contributor

Looks good to me 💃 !

Maybe @archmoj should have a look to be extra sure 👁️

return anchorAxis._offset;
} else if(side === 'bottom' || side === 'right') {
return anchorAxis._offset + anchorAxis._length;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this function return a default value if both conditions were false?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That should never happen.

@etpinard etpinard merged commit 2da4e44 into master Feb 25, 2019
@etpinard etpinard deleted the ax-automargin-fixup branch February 25, 2019 14:04
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.

Automargin regression since 1.44.2 ?
3 participants