summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-06-24 17:49:07 +0200
committerRémi Verschelde <rverschelde@gmail.com>2024-06-24 17:49:07 +0200
commited3eb6b643b38b8e1eb25f8daeab5638ad1f02d0 (patch)
treeff7c6404c0d0ebe4069946b29776c35e02697384
parent882489d15ca00b014b9a2f31082334ff6a7f6aa2 (diff)
parent4374761f76e52ee31e286cbb41adbb919bdd599f (diff)
downloadredot-engine-ed3eb6b643b38b8e1eb25f8daeab5638ad1f02d0.tar.gz
Merge pull request #93544 from passivestar/validation-panel-label-alignment
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;