diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2024-06-24 17:49:07 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2024-06-24 17:49:07 +0200 |
commit | ed3eb6b643b38b8e1eb25f8daeab5638ad1f02d0 (patch) | |
tree | ff7c6404c0d0ebe4069946b29776c35e02697384 | |
parent | 882489d15ca00b014b9a2f31082334ff6a7f6aa2 (diff) | |
parent | 4374761f76e52ee31e286cbb41adbb919bdd599f (diff) | |
download | redot-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.cpp | 1 |
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; |