Skip to content

Commit

Permalink
Merge pull request #93544 from passivestar/validation-panel-label-ali…
Browse files Browse the repository at this point in the history
…gnment

Center the label of EditorValidationPanel
  • Loading branch information
akien-mga committed Jun 24, 2024
2 parents 882489d + 4374761 commit ed3eb6b
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 ed3eb6b

Please sign in to comment.