Search Issue Tracker
By Design
Votes
0
Found in
2019.3.0a10
2019.3.0b1
2020.1.0a1
Issue ID
1181179
Regression
No
Popup is overlapping callback button when it is invoked from UI Elements
How to reproduce:
1. Open attached project ("1181179.zip")
2. Open Bug Report window (Window->BUG REPORT ====)
3. Click on IMGUI Button and click on UIE Button
Expected result: UIE popup behaves same as IMGUI
Actual result: UIE popup behavior differs from IMGUI
Reproducible with: 2019.3.0b3, 2020.1.0a3
Not reproducible with: 2017.4.32f1, 2018.4.8f1 (error CS0234), 2019.2.5f1, 2019.3.0a9 (IMGUI popup not working)
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
- Texture2D hash changes inside of an AssetBundle when rebuilding a SpriteAtlas bundle with an empty AssetPostprocessor Script enabled
- Aniso Level still applies when Generate MipMap is disabled in Texture Import Settings
- Mipmap Limit Groups long names are not truncated when creating a new Mipmap Limit Group with a long name
- “ArgumentException: Invalid double parameter.” error is thrown when Infinity is typed into the Fixed Timestep field
- GameObject becomes gray when using HDRP and STP together on macOS
Resolution Note:
VisualElement.layout is expressed in the coordinate space of its parent which isn't compatible with GUIUtility.GUIToScreen() conversions.
However one can use VisualElement.worldBound which will be expressed in the overall space of the current GUI context (the EditorWindow) and will work nicely with GUIUtility.GUIToScreen() and everything that uses that internally.
I'm getting correct results when changing the code in the attached project with :
var rect = _uieButton.worldBound;