Merge pull request #89437 from jsjtxietian/help-label
Fix help label will be partly outside the view area at 150% editor scale
This commit is contained in:
commit
006f5bc11c
|
@ -2683,10 +2683,8 @@ TileSetAtlasSourceEditor::TileSetAtlasSourceEditor() {
|
||||||
help_label = memnew(Label(TTR("Hold Shift to create big tiles.")));
|
help_label = memnew(Label(TTR("Hold Shift to create big tiles.")));
|
||||||
tile_create_help->add_child(help_label);
|
tile_create_help->add_child(help_label);
|
||||||
|
|
||||||
tile_create_help->set_anchors_and_offsets_preset(Control::PRESET_BOTTOM_LEFT, Control::PRESET_MODE_MINSIZE);
|
tile_create_help->set_anchors_and_offsets_preset(Control::PRESET_BOTTOM_LEFT, Control::PRESET_MODE_MINSIZE, 8);
|
||||||
Vector2 pos = tile_create_help->get_position();
|
tile_create_help->set_grow_direction_preset(Control::PRESET_BOTTOM_LEFT);
|
||||||
pos.y -= 8 * EDSCALE;
|
|
||||||
tile_create_help->set_position(pos);
|
|
||||||
|
|
||||||
base_tile_popup_menu = memnew(PopupMenu);
|
base_tile_popup_menu = memnew(PopupMenu);
|
||||||
base_tile_popup_menu->add_shortcut(ED_SHORTCUT("tiles_editor/delete", TTR("Delete"), Key::KEY_DELETE), TILE_DELETE);
|
base_tile_popup_menu->add_shortcut(ED_SHORTCUT("tiles_editor/delete", TTR("Delete"), Key::KEY_DELETE), TILE_DELETE);
|
||||||
|
|
Loading…
Reference in New Issue