summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpassivestar <60579014+passivestar@users.noreply.github.com>2024-06-24 15:22:02 +0400
committerpassivestar <60579014+passivestar@users.noreply.github.com>2024-06-24 15:22:02 +0400
commit4374761f76e52ee31e286cbb41adbb919bdd599f (patch)
tree9f8f41667384041da5c4f65f5b0f6f85b9a20f41
parent6649a84f6225bee93990752bc0aaf8f512f196d1 (diff)
downloadredot-engine-4374761f76e52ee31e286cbb41adbb919bdd599f.tar.gz
Center the label of EditorValidationPanel
-rw-r--r--editor/gui/editor_validation_panel.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/editor/gui/editor_validation_panel.cpp b/editor/gui/editor_validation_panel.cpp
index 969cb43952..a4ca743bd7 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;