-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Text2d and TextSpan is not center-aligned when JustifyText::Center is specified. #16783
Copy link
Copy link
Closed
Labels
A-UIGraphical user interfaces, styles, layouts, and widgetsGraphical user interfaces, styles, layouts, and widgetsC-BugAn unexpected or incorrect behaviorAn unexpected or incorrect behaviorP-RegressionFunctionality that used to work but no longer does. Add a test for this!Functionality that used to work but no longer does. Add a test for this!S-Needs-InvestigationThis issue requires detective work to figure out what's going wrongThis issue requires detective work to figure out what's going wrong
Milestone
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 behaviorP-RegressionFunctionality that used to work but no longer does. Add a test for this!Functionality that used to work but no longer does. Add a test for this!S-Needs-InvestigationThis issue requires detective work to figure out what's going wrongThis issue requires detective work to figure out what's going wrong
Bevy version
0.15
What went wrong
In bevy 0.14, the text sections correctly reflect the
JustifyText::Centerparameter, texts are center-aligned:However, after upgrading to bevy 0.15, the
Text2dandTextSpanare always left-aligned even though theTextLayout::new_with_justify(JustifyText::Center)is specified: