Unity Issue Tracker - UI from uxml fails to show with a TwoPanesplitView
Closed
UUM-19972
UI from uxml fails to show with a TwoPanesplitView
Unity: UI Toolkit Controls
As Designed
2023.1.X
2022.2.X
2022.1.X
2021.3.X
2020.3.X
The TwoPaneSplitView is not visible when created from an uxml because the instantiated template does not have a size. To fix this issue, flexGrow has to be set to 1 in the instantiated template.
Reproduction steps:
1. Open the user's attached project
2. Open “Test Window” > “From uxml”
3. Observe
4. Open “Test Window” > “From code”
5. Observe
Expected result: Both windows show the split pane with left and right labels
Actual result: “From uxml” fails to show split pane