From e34e374e388ac440fcabd18f3e51030833b79b0b Mon Sep 17 00:00:00 2001 From: Relintai Date: Wed, 13 Mar 2024 08:35:26 +0100 Subject: [PATCH] Fix the positioning of the help text in LayeredTileSetAtlasSourceEditor. --- .../editor/layered_tile_set_atlas_source_editor.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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 2a9cc1fe5..31af225e5 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 @@ -2746,9 +2746,8 @@ LayeredTileSetAtlasSourceEditor::LayeredTileSetAtlasSourceEditor() { tile_create_help->add_child(help_label); tile_create_help->set_anchors_and_margins_preset(Control::PRESET_BOTTOM_LEFT, Control::PRESET_MODE_MINSIZE); - Vector2 pos = tile_create_help->get_position(); - pos.y -= 8 * EDSCALE; - tile_create_help->set_position(pos); + tile_create_help->set_h_grow_direction(GrowDirection::GROW_DIRECTION_END); + tile_create_help->set_v_grow_direction(GrowDirection::GROW_DIRECTION_BEGIN); base_tile_popup_menu = memnew(PopupMenu); base_tile_popup_menu->add_shortcut(ED_SHORTCUT("layered_tiles_editor/delete", TTR("Delete"), KEY_DELETE), TILE_DELETE);