Search Issue Tracker

Fixed

Votes

1

Found in [Package]

1.0.0-preview.16

Issue ID

1359661

Regression

No

[UI Toolkit] Text object doesn't render instantly after setting display property to flex at Runtime through C#

Package: UI Toolkit

-

How to reproduce:
1. Open the attached "1359661" project
2. Open the "SampleScene" Scene and enter the Play mode
3. Press the "Set display: flex inline" button
4. Observe the grey area in the Game window

Expected result: "Text to Show/Hide" text appears instantly
Actual result: "Text to Show/Hide" text appears only after pressing the "Redraw UIDocument" button

Reproducible with: 1.0.0-preview.16 (2020.3.17f1, 2021.1.18f1), 2021.2.0b9, 2022.1.0a6
Couldn't test with: 2019.4.29f1 (UI Toolkit not supported)

Notes:
- In 2020.3.17f1 and 2021.1.18f1 versions, "Text to Show/Hide" text appears after moving the cursor to the right or to the bottom out of the grey area
- After downgrading to 2020.3.17f1 or 2021.1.18f1 install the UI Toolkit package and recreate the UIDocument object to reproduce
- Deleting the "position: relative" in the .box block in the test (bug).uss file fixes the issue

  1. Resolution Note:

    Fixed in 2022.1.0a12

  2. Resolution Note:

    Fixed in 2021.2.0b16

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.