Search Issue Tracker

Fixed

Fixed in 2023.2.17f1, 6000.0.0b13

Votes

0

Found in

2021.3.20f1

2022.2.9f1

2023.1.0b6

2023.2.0a4

2023.3.0a3

6000.0.0b11

Issue ID

UUM-29965

Regression

No

Borders of an element don't match its children's borders when the element has "max-width" specified

--

-

How to reproduce:
1. Open the user-attached project “MaxWidthProblem“
2. In the Project tab, click Assets → UITkTest → TestCase.uxml
3. Observe the #ProblemCase element in the Viewport

Expected result: The yellow outline matches the red outline
Actual result: The yellow outline has an offset from the right and doesn’t match the size of the red rectangle

Reproducible with: 2021.3.20f1, 2022.2.9f1, 2023.1.0b6, 2023.2.0a4
Couldn’t test with: 2020.3.45f1 (uxml file can’t be loaded properly)

Reproducible on: Windows 11 Pro

Workaround: Use “flex-basis” property with “flex-grow” specified by 0

Note: Also reproducible in Player

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.