mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 00:13:30 +00:00
Apply transform for LineEdit, RichTextLabel, and TextEdit popup positions
This commit is contained in:
parent
134da37497
commit
ad812cf29d
3 changed files with 5 additions and 5 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue