diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2024-03-13 18:41:50 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2024-03-13 18:41:50 +0100 |
commit | 006f5bc11c8538fe6c512db2f16ec5cbcd049709 (patch) | |
tree | aeb1fad5ca4fd9d7bcb4b7f2bb19bdb6fa73deb9 /editor/plugins | |
parent | 734bd3c8c4ef37f8c7777e87681b4c341b2f844f (diff) | |
parent | 856e071762cff59d73d94d72eed9a7f79dbe805f (diff) | |
download | redot-engine-006f5bc11c8538fe6c512db2f16ec5cbcd049709.tar.gz |
Merge pull request #89437 from jsjtxietian/help-label
Fix help label will be partly outside the view area at 150% editor scale
Diffstat (limited to 'editor/plugins')
-rw-r--r-- | editor/plugins/tiles/tile_set_atlas_source_editor.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/editor/plugins/tiles/tile_set_atlas_source_editor.cpp b/editor/plugins/tiles/tile_set_atlas_source_editor.cpp index d5aba35a8f..f9efc62f03 100644 --- a/editor/plugins/tiles/tile_set_atlas_source_editor.cpp +++ b/editor/plugins/tiles/tile_set_atlas_source_editor.cpp @@ -2683,10 +2683,8 @@ TileSetAtlasSourceEditor::TileSetAtlasSourceEditor() { help_label = memnew(Label(TTR("Hold Shift to create big tiles."))); tile_create_help->add_child(help_label); - tile_create_help->set_anchors_and_offsets_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_anchors_and_offsets_preset(Control::PRESET_BOTTOM_LEFT, Control::PRESET_MODE_MINSIZE, 8); + tile_create_help->set_grow_direction_preset(Control::PRESET_BOTTOM_LEFT); base_tile_popup_menu = memnew(PopupMenu); base_tile_popup_menu->add_shortcut(ED_SHORTCUT("tiles_editor/delete", TTR("Delete"), Key::KEY_DELETE), TILE_DELETE); |