-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Closed
Labels
A-UIGraphical user interfaces, styles, layouts, and widgetsGraphical user interfaces, styles, layouts, and widgetsC-BugAn unexpected or incorrect behaviorAn unexpected or incorrect behavior
Description
Bevy version
main d7d983
Details
UI layout changes don't get propagated correctly. Sometimes nodes completely disappear.
Worst offender, but definitely not the only bug, is this line in text_system:
Query<Entity, Or<(Changed<Text>, Changed<Style>)>>,A lot of changes to the Style properties won't result in changes to the geometry of the node, and the text gets recomputed needlessly. On the other hand, non-local changes that affect the geometry of the text node aren't recognised and the text doesn't get recomputed when it should be.
An example is that if you set a text node to fill 50% of its parent node, and you change the size of the parent node, the text layout won't be recalculated.
Metadata
Metadata
Assignees
Labels
A-UIGraphical user interfaces, styles, layouts, and widgetsGraphical user interfaces, styles, layouts, and widgetsC-BugAn unexpected or incorrect behaviorAn unexpected or incorrect behavior