diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-07-02 07:21:24 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-02 07:21:24 +0200 |
commit | b11da7b703931b0ade8181c5bae5e4b0a1c0b4d7 (patch) | |
tree | 9e3dbe07cb36a861f9c2237305dee5772063f64e /scene | |
parent | 1ae40793c78ba9ab84d102772bb271c91a492568 (diff) | |
parent | f0e320decf0be85eddb262b63541ae55354d257c (diff) |
Merge pull request #40028 from reduz/fix-popups1
Fix some popup menus missing screen transform.
Diffstat (limited to 'scene')
-rw-r--r-- | scene/gui/line_edit.cpp | 2 |
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(); |