Skip to content

OptionButton popup doesn't take SubViewportContainer transformation into consideration #69171

@simon-peregrine

Description

@simon-peregrine

Bugsquad note: This issue has been confirmed several times already. No need to confirm it further.


Godot version

4.0.beta6.mono

System information

Windows 11

Issue description

When embedded in a SubViewportContainer whose scale is not 1, the popup menu of OptionButton is scaled and positioned as if the scale were 1.

Using the following scene structure:
NodeLayout

The SubViewportContainer with scale = 1:
OptionButtonCorrect

The SubViewportContainer with scale = 2:
OptionButtonIncorrect

Steps to reproduce

Put an OptionButton inside a SubViewportContainer hierarchy and set the scale of the SubViewportContainer to 2.

Minimal reproduction project

OptionButtonIssue.zip

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions