diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-09-22 14:08:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-22 14:08:19 +0200 |
commit | 0f48599ada020292fe4ec0a5b72a5c5c0ef5f76d (patch) | |
tree | 0f06d4250c8c7020e2803ec5fbc3ac99f3ff7ed2 /editor/editor_resource_picker.cpp | |
parent | 08e455a1f6de9f494422a9084835ce250e8c2738 (diff) | |
parent | c63d51408fe1ee8d4e57b235c94037732ecf2104 (diff) |
Merge pull request #52808 from AnilBK/simplify-logic
Diffstat (limited to 'editor/editor_resource_picker.cpp')
-rw-r--r-- | editor/editor_resource_picker.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/editor_resource_picker.cpp b/editor/editor_resource_picker.cpp index 31c62880e2..c98fbea530 100644 --- a/editor/editor_resource_picker.cpp +++ b/editor/editor_resource_picker.cpp @@ -145,7 +145,7 @@ void EditorResourcePicker::_update_menu() { Rect2 gt = edit_button->get_screen_rect(); edit_menu->set_as_minsize(); int ms = edit_menu->get_contents_minimum_size().width; - Vector2 popup_pos = gt.position + gt.size - Vector2(ms, 0); + Vector2 popup_pos = gt.get_end() - Vector2(ms, 0); edit_menu->set_position(popup_pos); edit_menu->popup(); } |