godot
godot copied to clipboard
UI: `Window/wrap_controls` does not account for the `content_scale_factor`
Tested versions
Godot v4.3.dev6 - Windows 10.0.19044 - Vulkan (Forward+) - integrated AMD Radeon(TM) Graphics (Advanced Micro Devices, Inc.; 30.0.13002.1001) - AMD Ryzen 9 5900HS with Radeon Graphics (16 Threads)
System information
Godot v4.3.dev6 - Windows 10.0.19044 - Vulkan (Forward+) - integrated AMD Radeon(TM) Graphics (Advanced Micro Devices, Inc.; 30.0.13002.1001) - AMD Ryzen 9 5900HS with Radeon Graphics (16 Threads)
Issue description
wrap_controls
allows a window to self-determine its best minimum size for displaying its children Controls, however, such calculation forgot to include the content_scale_factor
, which leads the window too big (if the scale factor is less than one) or too small (if the scale factor is larger than one) for its content_scale_factor
applied children.
https://github.com/godotengine/godot/assets/71481700/107aac42-9d17-469e-a605-bbea91124e08
Steps to reproduce
- Download the MRP
- Open the MRP with the correct version
- Run the project
- Do what the video did
- Inspect the issue