Center the label of EditorValidationPanel

This commit is contained in:
passivestar 2024-06-24 15:22:02 +04:00
parent 6649a84f62
commit 4374761f76
1 changed files with 1 additions and 0 deletions

View File

@ -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;