Skip to content

Commit

Permalink
Center the label of EditorValidationPanel
Browse files Browse the repository at this point in the history
  • Loading branch information
passivestar committed Jun 24, 2024
1 parent 6649a84 commit 4374761
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions editor/gui/editor_validation_panel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ void EditorValidationPanel::add_line(int p_id, const String &p_valid_message) {
Label *label = memnew(Label);
message_container->add_child(label);
label->set_custom_minimum_size(Size2(200 * EDSCALE, 0));
label->set_vertical_alignment(VERTICAL_ALIGNMENT_CENTER);
label->set_autowrap_mode(TextServer::AUTOWRAP_WORD_SMART);

valid_messages[p_id] = p_valid_message;
Expand Down

0 comments on commit 4374761

Please sign in to comment.