You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Apply transform for LineEdit, RichTextLabel, and TextEdit popup positions
This commit is contained in:
@@ -2006,7 +2006,7 @@ void TextEdit::gui_input(const Ref<InputEvent> &p_gui_input) {
|
||||
|
||||
if (context_menu_enabled) {
|
||||
_update_context_menu();
|
||||
menu->set_position(get_screen_position() + mpos);
|
||||
menu->set_position(get_screen_transform().xform(mpos));
|
||||
menu->reset_size();
|
||||
menu->popup();
|
||||
grab_focus();
|
||||
@@ -2291,7 +2291,7 @@ void TextEdit::gui_input(const Ref<InputEvent> &p_gui_input) {
|
||||
if (context_menu_enabled) {
|
||||
_update_context_menu();
|
||||
adjust_viewport_to_caret();
|
||||
menu->set_position(get_screen_position() + get_caret_draw_pos());
|
||||
menu->set_position(get_screen_transform().xform(get_caret_draw_pos()));
|
||||
menu->reset_size();
|
||||
menu->popup();
|
||||
menu->grab_focus();
|
||||
|
||||
Reference in New Issue
Block a user