Skip to content

Make sure panels are always set to a positive size #4081

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 2 commits into from
Jun 22, 2020

Conversation

thomasp85
Copy link
Member

When providing a reversed scale along with certain coords the aspect ratio may end up as negative and the panel will get a negative null dimension. This can wreck havoc (see thomasp85/patchwork#195)

This PR fixes it by ensuring the dimension is always positive

@thomasp85 thomasp85 added bug an unexpected problem or unintended behavior facets 💎 labels Jun 22, 2020
@thomasp85 thomasp85 requested a review from clauswilke June 22, 2020 08:24
@thomasp85 thomasp85 merged commit b0134b1 into tidyverse:master Jun 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug an unexpected problem or unintended behavior facets 💎
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants