Skip to content

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