Search Issue Tracker
Fixed
Fixed in 2021.3.37f1, 2022.3.22f1, 2023.2.18f1, 6000.0.0b11
Votes
3
Found in
2021.3.27f1
2022.3.3f1
2023.1.1f1
2023.2.0a20
2023.3.0a3
6000.0.0b11
Issue ID
UUM-40647
Regression
No
VisualElement is applying "margin: auto" even when Display is set to none
Reproduction steps:
1. Open project “IN-43965.zip”
2. Open “IN-43965.uxml” in the project
3. Observe the Viewport in the UI Builder
Expected result: the blue and white squares of the bottom VisualElement are displayed proportionally - the red square with “Display: none” does not affect layout calculations
Actual result: the blue and white squares of the bottom VisualElement are displayed on the left - the red square with “Display: none” affects layout calculations
Reproducible with: 2021.3.27f1, 2022.3.3f1, 2023.1.1f1, 2023.2.0a20
Reproducible on: macOS Ventura 13.2.1 (Intel), Windows 10 (by the reporter)
Note: Also reproducible in Standalone Player
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- “[Worker0] Could not generate preview image“ error when opening macOS native plugin in the Inspector with Architecture to build for set to ARM 64-bit
- [iOS] Application.absoluteURL is empty on Awake/Start when opening via deep link with Splash Screen disabled
- Crash on MemoryManager::Deallocate when rapidly calling Addressables.LoadAssetAsync
- Crash on physx::shdfnd::atomicIncrement when adjusting values on a character controller component after entering Play mode in Prefab edit mode
- [Rendering Debugger] [NewInputSystem] Debug Overlays in Play mode throws InvalidOperationException when using New Input System
Resolution Note (fix version 2022.3.22f1):
no verification as per current team policies