How to reproduce:
1. Create and open a new 3D sample project
2. Select Main Camera GameObject
3. In the Inspector view, fill it with components until the Add Component button is at the bottom, near the window edge
4. Press the Add Component button
5. Observe the menu
Actual result: The menu extends beyond the usable display area, making it impossible to interact with
Expected result: The menu should recognize the boundaries of the usable display and adjust itself accordingly, ensuring all options remain accessible
Reproducible with: 2023.1.0a4, 6000.0.62f1, 6000.2.13f1, 6000.3.0f1, 6000.4.0a5, 6000.5.0a1
Reproducible on: Ubuntu 22.04
Not reproducible on: Windows 11
Notes:
- The issue is also present with other menus (e.g., Project window menu for filtering assets)
- An error message appears after the menu goes off bounds:
”Scaling mismatch between the EditorWindow (1) and the Editor Panel ConsoleWindow (2). OnBackingScaleFactorChangedInternal was probably not call upon scaling change
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&) (at /home/bokken/build/output/unity/unity/Modules/IMGUI/GUIUtility.cs:224)”