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/dependency_editor.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/dependency_editor.cpp')
-rw-r--r-- | editor/dependency_editor.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/editor/dependency_editor.cpp b/editor/dependency_editor.cpp index f18284638f..7ab5d9a97c 100644 --- a/editor/dependency_editor.cpp +++ b/editor/dependency_editor.cpp @@ -275,7 +275,8 @@ void DependencyEditorOwners::_list_rmb_select(int p_item, const Vector2 &p_pos) file_options->add_item(TTR("Open"), FILE_OPEN); } - file_options->set_position(owners->get_global_position() + p_pos); + file_options->set_position(owners->get_screen_position() + p_pos); + file_options->reset_size(); file_options->popup(); } |