Steps to reproduce:
- Create a new URP project.
- Assets > Create > UI Toolkit > UI Document.
- Open this in UI Builder.
- Drag the Visual Element into Hierarchy.
- Under Inspector > Inlined Styles > Size, set Width to 20px. See that there is a change in your Visual Element.
- Set Height to 20px.
- Try changing the size by Dragging the Blue lines.
Actual results: Width has no issue setting, but height does not change.
The only way to edit the height seems to be to set the Max Height.
Expected results: Visual element height will be set to 20px.
Reproducible with versions: 6000.1.0b2, 6000.0.33f1, 2022.3.56f1, did not test much further as it was previously marked As Designed.
This did previously return expected results in 2022.1.24f1.
Tested on (OS): Windows 10
Notes:
- Could not reproduce with a default Button.
- Due to flex-grow being 1 in Visual Element settings.