mirror of
https://github.com/godotengine/godot
synced 2024-09-05 16:09:59 +00:00
Merge pull request #93544 from passivestar/validation-panel-label-alignment
Center the label of EditorValidationPanel
This commit is contained in:
commit
ed3eb6b643
|
@ -66,6 +66,7 @@ void EditorValidationPanel::add_line(int p_id, const String &p_valid_message) {
|
||||||
Label *label = memnew(Label);
|
Label *label = memnew(Label);
|
||||||
message_container->add_child(label);
|
message_container->add_child(label);
|
||||||
label->set_custom_minimum_size(Size2(200 * EDSCALE, 0));
|
label->set_custom_minimum_size(Size2(200 * EDSCALE, 0));
|
||||||
|
label->set_vertical_alignment(VERTICAL_ALIGNMENT_CENTER);
|
||||||
label->set_autowrap_mode(TextServer::AUTOWRAP_WORD_SMART);
|
label->set_autowrap_mode(TextServer::AUTOWRAP_WORD_SMART);
|
||||||
|
|
||||||
valid_messages[p_id] = p_valid_message;
|
valid_messages[p_id] = p_valid_message;
|
||||||
|
|
Loading…
Reference in a new issue