Skip to content
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

Text resizes after being accessed mutably #10615

Closed
UkoeHB opened this issue Nov 17, 2023 · 1 comment
Closed

Text resizes after being accessed mutably #10615

UkoeHB opened this issue Nov 17, 2023 · 1 comment
Labels
C-Bug An unexpected or incorrect behavior S-Needs-Triage This issue needs to be labelled

Comments

@UkoeHB
Copy link
Contributor

UkoeHB commented Nov 17, 2023

Bevy version

v0.12.0

[Optional] Relevant system information

MacOS

What you did

Ran this bevy_kot example.

What went wrong

The example text often, but not always, starts out with the wrong size and alignment. After I access a Text component mutably (e.g. text.get_mut(id).unwrap().into_inner()), the size and alignment is fixed to the expected values.

Additional information

Video (see at the very start of the video one of the text elements changes size): https://github.com/bevyengine/bevy/assets/37489173/cb27d3dc-aae1-436e-96d9-f61af5b1e3e3

Note that the text entity is added via bevy_lunex, but lunex doesn't do anything special with the Text component. See here.

@UkoeHB UkoeHB added C-Bug An unexpected or incorrect behavior S-Needs-Triage This issue needs to be labelled labels Nov 17, 2023
@UkoeHB
Copy link
Contributor Author

UkoeHB commented Nov 17, 2023

Looks like #10407 is the same issue.

@UkoeHB UkoeHB closed this as completed Nov 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-Bug An unexpected or incorrect behavior S-Needs-Triage This issue needs to be labelled
Projects
None yet
Development

No branches or pull requests

1 participant