-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Fix bevy_ui compilation failure without bevy_text #8985
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
Conversation
2f8f2f5 to
baa1517
Compare
| height: size.y, | ||
| } | ||
| }; | ||
| self.measure_func = Some(MeasureFunc::Boxed(Box::new(measure_func))); |
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.
This looks much cleaner. We should be using type aliases for taffy types in the layout module too maybe.
ickshonpe
left a comment
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.
Fixes the compilation issues and the refactorings are nice.
wilk10
left a comment
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.
I don't mind the sneaky refactor, and the fix for the compilation failure is pretty elegant, imo. Well done!
Objective
bevy_uidoesn't compile without thebevy_textfeature #8984Solution
I admit: I did sneak it an unrelated mini-refactor. of the
measurment.rsmodule. it seemed to me that directly importingtaffytypes helped reduce a lot of boilerplate, so I did it.