summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2020-07-01 14:44:19 -0300
committerJuan Linietsky <reduzio@gmail.com>2020-07-01 14:44:19 -0300
commitf0e320decf0be85eddb262b63541ae55354d257c (patch)
treea515137c4dd514cc1a22c89ecc497bd41ca0a39c /scene
parent0a8dbe7f75f2999e0f73af83dda3510c965f2b94 (diff)
Fix some popups menu missing screen transform.
Closes #38591
Diffstat (limited to 'scene')
-rw-r--r--scene/gui/line_edit.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/line_edit.cpp b/scene/gui/line_edit.cpp
index 251f31ce4e..27c2c70708 100644
--- a/scene/gui/line_edit.cpp
+++ b/scene/gui/line_edit.cpp
@@ -51,7 +51,7 @@ void LineEdit::_gui_input(Ref<InputEvent> p_event) {
if (b.is_valid()) {
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_position(get_screen_transform().xform(get_local_mouse_position()));
menu->set_size(Vector2(1, 1));
//menu->set_scale(get_global_transform().get_scale());
menu->popup();