diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-12-06 16:05:10 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-06 16:05:10 +0100 |
commit | e8082003f19ad8d98b6b2f74f64f4eaa7fe86353 (patch) | |
tree | 59ac76c6766279ce53f7b274053db8ca5d0d4fd8 /editor/editor_inspector.cpp | |
parent | 78fd56a5968e7618f2a39f2759ead4c41b36734a (diff) | |
parent | 81efebb3a170dd6194905599361c38ae4246c434 (diff) |
Merge pull request #52280 from jmb462/fix-bad-popup-offset-with-single-window-off
Diffstat (limited to 'editor/editor_inspector.cpp')
-rw-r--r-- | editor/editor_inspector.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/editor_inspector.cpp b/editor/editor_inspector.cpp index a6cd07dab3..81c9d996cb 100644 --- a/editor/editor_inspector.cpp +++ b/editor/editor_inspector.cpp @@ -1555,7 +1555,7 @@ void EditorInspectorArray::_panel_gui_input(Ref<InputEvent> p_event, int p_index popup_array_index_pressed = begin_array_index + p_index; rmb_popup->set_item_disabled(OPTION_MOVE_UP, popup_array_index_pressed == 0); rmb_popup->set_item_disabled(OPTION_MOVE_DOWN, popup_array_index_pressed == count - 1); - rmb_popup->set_position(mb->get_global_position()); + rmb_popup->set_position(get_screen_position() + mb->get_position()); rmb_popup->reset_size(); rmb_popup->popup(); } |