Skip to content

ScrollContainer not Working in OptionButton #1151

@TheFirstInvoker

Description

@TheFirstInvoker

Tested versions

Reproducible in 26.1-Beta
Not Reproducible in 4.4

System information

MX Linux 25 - Redot 26.1-Beta LinuxBSD x86_64 - Vulkan

Issue description

In 4.4 you can create a scrollable OptionButtons by adding a ScrollContainer child to its PopupMenu and defining a max_size value. In 26.1-Beta, this behaviour seems to be missing. These screenshots are from the same project on both versions:

Image 4.4 Image 26.1

Steps to reproduce

1-Create an OptionButton with a long list of items
2-Add the following code:
func _ready() -> void:
get_popup().max_size = Vector2i(200, 200)
get_popup().add_child(ScrollContainer.new())
3-Try it on both versions

Minimal reproduction project (MRP)

project.zip

Here's the MRP with all ready to be tested, thanks in advance

Metadata

Metadata

Type

Projects

Status

Open

Relationships

None yet

Development

No branches or pull requests

Issue actions