Search Issue Tracker

Fixed in 5.6.0

Votes

1

Found in

5.5.0f3

Issue ID

858880

Regression

Yes

Input Field overrides the manually set preferred size in the Layout Element

UI

-

How to reproduce:

1. Open attached project "858880-repro.zip"
2. Go to Scene view
3. Input Fields have a Layout Element with a Preferred Width set to 200

Expected behavior: Input Field doesn't override it's Layout Element
Actual behavior: Input Field overrides it's Layout Element

Note: This is caused by the InputField.layoutPriority returning 1
Workaround: Use an InputField-derived class which overrides the layoutPriority returning 0

Reproducible: 5.5.0p1, 5.6.0a6
Not reproducible: 5.3.7p2, 5.4.3p3
Regression introduced in: 5.5.0b3

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.