summaryrefslogtreecommitdiffstats
path: root/scene/gui/line_edit.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2019-04-30 10:15:02 +0200
committerGitHub <noreply@github.com>2019-04-30 10:15:02 +0200
commitd0e628fa55da50bd4841f1865b47bb6b283fb886 (patch)
tree4b9f6670bce19d3a7bb0998151b34c3131930217 /scene/gui/line_edit.cpp
parentd647f7ce71dc54dcc77a9e3591ba904ffa9ab1e2 (diff)
parentb8e09f98c421c68816be9d58d528746efce91cb6 (diff)
downloadredot-engine-d0e628fa55da50bd4841f1865b47bb6b283fb886.tar.gz
Merge pull request #28334 from YeldhamDev/popup_buttons_scale
Make buttons that trigger popups have the same scale
Diffstat (limited to 'scene/gui/line_edit.cpp')
-rw-r--r--scene/gui/line_edit.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/gui/line_edit.cpp b/scene/gui/line_edit.cpp
index 1e8d73b6a4..4536cfe17c 100644
--- a/scene/gui/line_edit.cpp
+++ b/scene/gui/line_edit.cpp
@@ -56,6 +56,7 @@ void LineEdit::_gui_input(Ref<InputEvent> p_event) {
if (b->is_pressed() && b->get_button_index() == BUTTON_RIGHT && context_menu_enabled) {
menu->set_position(get_global_transform().xform(get_local_mouse_position()));
menu->set_size(Vector2(1, 1));
+ menu->set_scale(get_global_transform().get_scale());
menu->popup();
grab_focus();
return;