Skip to content

Use calc_element() to compute panel spacing - #329

Merged
thomasp85 merged 1 commit into
thomasp85:mainfrom
teunbrand:use_calc_element
Mar 25, 2025
Merged

Use calc_element() to compute panel spacing#329
thomasp85 merged 1 commit into
thomasp85:mainfrom
teunbrand:use_calc_element

Conversation

@teunbrand

Copy link
Copy Markdown
Collaborator

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