Tested versions
Engine Version: v4.5.1.stable.fedora.f62fdbde1
Using editor
System information
Fedora 43 - Godot Engine v4.5.1.stable.fedora.f62fdbde1 - Vulkan 1.4.318 - Forward Mobile - AMD Radeon RX 7800 XT (RADV NAVI32)
Issue description
When creating a OptionButton with a few items and checking 'Fit To Longest Item' option dropdown menu of component does not match the size of button and overextends to right for approx 8 pixels. The only way to fix this is to set minsize that is larger than longest item. (Yes i checked options for trimming whitespace and checked that item has no whitespace in the end)
As it is shown above longest item has some space in the end in dropdown menu and it causes dropdown menu to overextend
Steps to reproduce
- Scene > New Scene > Add Child Node > Option Button
- Set 'Fit to Longest Item'
true
- Add a few items
- Run Current Scene
- Open dropdown menu
Minimal reproduction project (MRP)
option-button-bug.zip
Tested versions
Engine Version: v4.5.1.stable.fedora.f62fdbde1
Using editor
System information
Fedora 43 - Godot Engine v4.5.1.stable.fedora.f62fdbde1 - Vulkan 1.4.318 - Forward Mobile - AMD Radeon RX 7800 XT (RADV NAVI32)
Issue description
When creating a OptionButton with a few items and checking 'Fit To Longest Item' option dropdown menu of component does not match the size of button and overextends to right for approx 8 pixels. The only way to fix this is to set minsize that is larger than longest item. (Yes i checked options for trimming whitespace and checked that item has no whitespace in the end)
As it is shown above longest item has some space in the end in dropdown menu and it causes dropdown menu to overextend
Steps to reproduce
trueMinimal reproduction project (MRP)
option-button-bug.zip