Search Issue Tracker

Feature Request

Votes

0

Found in

2021.3.8f1

2022.1.12f1

2022.2.0b5

2023.1.0a6

Issue ID

UUM-12864

Regression

No

Adding a child VisualElement to a Label breaks the Label's world bounds

-

Reproduction steps:

  1. Open the user's attached project
  2. Enter Play mode and observe Game View
  3. Exit Play mode
  4. Select “UIDocument” GameObject in the Hierarchy
  5. Toggle “Add Child to Label” on
  6. Enter Play mode and observe Game View

Expected result: Red background fills the Label bounds and a child is added to it
Actual result: Red background no longer fills the Label space and conforms to the cyan square child

Reproduced with: 2021.3.8f1, 2022.1.12f1, 2022.2.0b5, 2023.1.0a6
Could not test with: 2020.3.38f1 (because UI Toolkit is a preview package)

Reproducible on: macOS 12.4 (Intel)

  1. Resolution Note:

    This is not supported at the moment but it is on the roadmap.

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.