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

Use calc_element() to compute panel spacing #329

Merged
merged 1 commit into from
Mar 25, 2025

Conversation

teunbrand
Copy link
Contributor

This PR aims to fix an issue identified in tidyverse/ggplot2#6287.

Briefly, panel spacing can be a rel object in addition to a unit object, which is resolved through inheritance. For this reason, calc_element() should be used.

@thomasp85 thomasp85 merged commit f81a768 into thomasp85:main Mar 25, 2025
@teunbrand teunbrand deleted the use_calc_element branch March 25, 2025 06:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants