-
-
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
definite measure func #8111
Comments
Definitely looks like a bug to me. Especially seeing as changing the vertical height fixes it! Weird that other layouts seem to work fine when resizing the window though... |
It's obvious now with this simple example, but I spent so many hours yesterday hacking around with the assumption there was something wrong with my text wrapping PR changes or the text pipeline 😅 |
@ickshonpe This should be fixed by Taffy |
Awesome, back to banging my head against the text-wrapping implementation 😣 |
Bevy version
Bevy Main doesn't support user measure funcs, so you need this branch:
It just replaces the current measure func with this:
and adds a resource
bevy::ui::AlwaysUpdate
which when present causes the UI to do a full update every frame.What you did
https://github.com/ickshonpe/definite_measure_func
What went wrong
unknown_2023.03.16-23.43_clip_1.mp4
The available horizontal space doesn't change when you enlarge the window horizontally.
Additional information
This can be fixed by doing a full update on all the nodes whenever the window resizes.
Because the full update gives the behaviour I expected, it looks to me like this is a bug and not just that I don't entirely understand the measure func constraints correctly or something.
It might just be that the only problem is that we weren't doing a full update on resizing when we needed to, but I'm not certain.
The text was updated successfully, but these errors were encountered: