Skip to content

Problems with the text system, change detection and MeasureFunc #7663

@ickshonpe

Description

@ickshonpe

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

No one assigned

    Labels

    A-UIGraphical user interfaces, styles, layouts, and widgetsC-BugAn unexpected or incorrect behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions