diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-09-17 16:00:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-17 16:00:42 +0200 |
commit | b334560f05f86fb2267611c2d8a3f043e34e233e (patch) | |
tree | e95c63358fb094fe0f2108a2de4e351337236b44 /scene/gui/option_button.cpp | |
parent | d67e2f3e0f00c4a78552fabf38dfe816bdeeefe9 (diff) | |
parent | 4f4c9a5f570bcaf8017cb86f22f45e885a226d07 (diff) |
Merge pull request #49376 from menip/OptionButtonFix
Diffstat (limited to 'scene/gui/option_button.cpp')
-rw-r--r-- | scene/gui/option_button.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/option_button.cpp b/scene/gui/option_button.cpp index d16e96dbec..2adeb2d947 100644 --- a/scene/gui/option_button.cpp +++ b/scene/gui/option_button.cpp @@ -115,7 +115,7 @@ void OptionButton::_selected(int p_which) { } void OptionButton::pressed() { - Size2 size = get_size(); + Size2 size = get_size() * get_viewport()->get_canvas_transform().get_scale(); popup->set_position(get_screen_position() + Size2(0, size.height * get_global_transform().get_scale().y)); popup->set_size(Size2(size.width, 0)); popup->popup(); |