-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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.4 #10690
Upgrade to Taffy 0.4 #10690
Conversation
8a924f4
to
3a7e8f3
Compare
@ickshonpe This PR fixes Taffy reserving space for padding for text and image nodes, but the text/image position is not offset by the top/left padding when actually rendering. Do you know where that change would need to be made? Taffy 0.4 outputs computed padding and border values. |
This is no longer blocked, as taffy 0.4 has been released. |
We're getting some CI errors for the checks that run nightly, and they appear to be related to Taffy. Would updating to 0.4 fix this error?
|
Taffy 0.4 release is unlikely to fix this as that code is unchanged between versions. We'll likely need to do a patch release. Or for rustc to fix their inference regression. |
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.
Once there's docs for NodeMeasure
this LGTM! Happy to see this finally make it in.
@nicoburns the CI failures look related: could you take a look at the failures reported during the failed merge if this latest attempt fails? |
Yep, just having lunch but will take a look after. Keen to get this merged so we can stop supporting Taffy 0.3! |
Head branch was pushed to by a user without write access
d381d90
to
db6390e
Compare
@alice-i-cecile Passing checks now |
Objective
Display::Block
Overflow::Hidden
Overflow::Scroll
) inbevy_ui
#8104cosmic-text
#8808 / Cosmic text #10193 to remove a Mutex around the font system.Todo
Fix rendering of text/images to account for padding/border on nodes (should size/position to content box rather than border box)In order get this into a mergeable state this PR instead zeroes out padding/border when syncing leaf node styles into Taffy to preserve the existing behaviour. Text and Images can't be given padding #6879 can be fixed in a followup PR.Solution
Note: Taffy 0.4 has not yet been released. This PR is being created in advance of the release to ensure that there are no blockers to upgrading once the release occurs.
Changelog
Display::Block
andOverflow::Hidden
styles.