-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Upgrade to Taffy 0.6 #15844
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
Upgrade to Taffy 0.6 #15844
Conversation
It looks like your PR is a breaking change, but you didn't provide a migration guide. Could you add some context on what users should update when this change get released in a new version of Bevy? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good besides the comments nits.
Adding the computed margin values would let me add support for margin-box
to #15561.
Nits addressed |
fixes #16304 |
@alice-i-cecile can we can merge this now 0.15 has been released? |
Yep! I'll grab this in my next merge train. |
# Objective - Keep Taffy version up to date Taffy 0.6 doesn't include a huge amount relevant to Bevy. But it does: - Add the `box_sizing` style - Expose the computed `margin` in layout - Traitifies the `Style` struct, which opens up the possibility of using Bevy's `Style` struct directly (although Bevy currently does some style resolution at conversion time which would no longer be cached if it was used directly). - Have a few bug fixes in the layout algorithms ## Solution - Upgrade Taffy to `0.6.0` ## Testing - I've run the `grid` example. All looks good. - More testing is probably warranted. We have had regressions from Taffy upgrades before - Having said that, most of the algorithm changes this cycle were driven by fixing WPT tests run through the new Servo integration. So they're possibly less likely than usual to cause regressions. ## Breaking changes The only "breaking" change is adding a field to `Style`. Probably doesn't bear mentioning? --------- Co-authored-by: Alice Cecile <[email protected]>
Objective
Taffy 0.6 doesn't include a huge amount relevant to Bevy. But it does:
box_sizing
stylemargin
in layoutStyle
struct, which opens up the possibility of using Bevy'sStyle
struct directly (although Bevy currently does some style resolution at conversion time which would no longer be cached if it was used directly).Solution
0.6.0
Testing
grid
example. All looks good.Breaking changes
The only "breaking" change is adding a field to
Style
. Probably doesn't bear mentioning?