Skip to content

Commit

Permalink
Merge pull request #89437 from jsjtxietian/help-label
Browse files Browse the repository at this point in the history
Fix help label will be partly outside the view area at 150% editor scale
  • Loading branch information
akien-mga committed Mar 13, 2024
2 parents 734bd3c + 856e071 commit 006f5bc
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions editor/plugins/tiles/tile_set_atlas_source_editor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 006f5bc

Please sign in to comment.