Skip to content

Commit 856e071

Browse files
committed
Fix help label will be partly outside the view area at 150% editor scale
1 parent 6128206 commit 856e071

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

editor/plugins/tiles/tile_set_atlas_source_editor.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2683,10 +2683,8 @@ TileSetAtlasSourceEditor::TileSetAtlasSourceEditor() {
26832683
help_label = memnew(Label(TTR("Hold Shift to create big tiles.")));
26842684
tile_create_help->add_child(help_label);
26852685

2686-
tile_create_help->set_anchors_and_offsets_preset(Control::PRESET_BOTTOM_LEFT, Control::PRESET_MODE_MINSIZE);
2687-
Vector2 pos = tile_create_help->get_position();
2688-
pos.y -= 8 * EDSCALE;
2689-
tile_create_help->set_position(pos);
2686+
tile_create_help->set_anchors_and_offsets_preset(Control::PRESET_BOTTOM_LEFT, Control::PRESET_MODE_MINSIZE, 8);
2687+
tile_create_help->set_grow_direction_preset(Control::PRESET_BOTTOM_LEFT);
26902688

26912689
base_tile_popup_menu = memnew(PopupMenu);
26922690
base_tile_popup_menu->add_shortcut(ED_SHORTCUT("tiles_editor/delete", TTR("Delete"), Key::KEY_DELETE), TILE_DELETE);

0 commit comments

Comments
 (0)