From 4374761f76e52ee31e286cbb41adbb919bdd599f Mon Sep 17 00:00:00 2001 From: passivestar <60579014+passivestar@users.noreply.github.com> Date: Mon, 24 Jun 2024 15:22:02 +0400 Subject: [PATCH] Center the label of EditorValidationPanel --- editor/gui/editor_validation_panel.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/editor/gui/editor_validation_panel.cpp b/editor/gui/editor_validation_panel.cpp index 969cb439522..a4ca743bd78 100644 --- a/editor/gui/editor_validation_panel.cpp +++ b/editor/gui/editor_validation_panel.cpp @@ -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;