Unity Issue Tracker - GUIStyle.CalcHeight returns different values when DPI scaling is set to 100%
Fixed
UUM-3429
GUIStyle.CalcHeight returns different values when DPI scaling is set to 100%
Unity: IMGUI Framework
Fixed
2023.2.X
2023.1.X
Won't Fix
2022.2.X
2022.1.X
2021.3.X
2020.3.X
2020.2.X
Since it's an editor-unsupported bug, It will mainly be addressed in 2023.1.
Since it's an editor-unsupported bug, It will mainly be addressed in 2023.1.
Since it's an editor-unsupported bug, It will mainly be addressed in 2023.1.
Since it's an editor-unsupported bug, It will mainly be addressed in 2023.1.
Since it's an editor-unsupported bug, It will mainly be addressed in 2023.1.
How to reproduce:
1. Open the user's attached "GUIStyleCalcHeightBug" project
2. Make sure your display scaling is set to 100%
3. Click Bug Report -> Open Window
4. Observe the Console
Expected result: contentHeight has the same value in both layout and repaint phases and the text is not cropped
Actual result: contentHeight value is smaller in the layout phase and the text becomes cropped