From 7b72d180a58264941beda829d9f64c6222d7ac6d Mon Sep 17 00:00:00 2001 From: Relintai Date: Wed, 13 Mar 2024 07:35:13 +0100 Subject: [PATCH] Fix popup menu position. --- .../editor/layered_tile_set_atlas_source_editor.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/layered_tile_map/editor/layered_tile_set_atlas_source_editor.cpp b/modules/layered_tile_map/editor/layered_tile_set_atlas_source_editor.cpp index 5d976b162..2a9cc1fe5 100644 --- a/modules/layered_tile_map/editor/layered_tile_set_atlas_source_editor.cpp +++ b/modules/layered_tile_map/editor/layered_tile_set_atlas_source_editor.cpp @@ -2028,7 +2028,8 @@ void LayeredTileSetAtlasSourceEditor::_tile_alternatives_control_gui_input(const selected = selection.front()->get(); menu_option_coords = selected.tile; menu_option_alternative = selected.alternative; - alternative_tile_popup_menu->popup(Rect2i(get_global_transform().xform(get_local_mouse_position()), Size2i())); + alternative_tile_popup_menu->set_position(get_global_transform().xform(get_local_mouse_position())); + alternative_tile_popup_menu->popup(); } }