Unity Issue Tracker - VisualElement has set flex-grow and background-color default inline styles when created in UI Builder
Fixed
UUM-19254
VisualElement has set flex-grow and background-color default inline styles when created in UI Builder
Unity: UI Builder
UI Builder
Fixed
2023.3.X
2023.2.X
2023.1.X
2022.3.X
Won't Fix
2022.2.X
2022.2.0a3 onwards
Fixed UUM-19254 @laila-chammaa:
UI Toolkit: Added an option to the library's settings that will allow the user to use a blank VisualElement by default when adding from the library.
Fixed UUM-19254 @laila-chammaa:
UI Toolkit: Added an option to the library's settings that will allow the user to use a blank VisualElement by default when adding from the library.
How to reproduce:
1. Create a new Unity project
2. Got to Window >UI Toolkit > UI Builder
3. Add a VisualElement container to the Viewport
4. In the Inspector > Inlined Styles > Flex observe the Grow value
Expected result: flex-grow value is equal to 0
Actual result: flex-grow value is equal to 1