mirror of
https://github.com/godotengine/godot.git
synced 2024-11-10 06:03:09 +00:00
Center the label of EditorValidationPanel
This commit is contained in:
parent
6649a84f62
commit
4374761f76
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user