mirror of
https://github.com/godotengine/godot.git
synced 2024-11-22 04:06:14 +00:00
Center the label in EditorObjectSelector
This commit is contained in:
parent
e351b89117
commit
fccfda2706
@ -239,6 +239,7 @@ EditorObjectSelector::EditorObjectSelector(EditorSelectionHistory *p_history) {
|
||||
current_object_label = memnew(Label);
|
||||
current_object_label->set_text_overrun_behavior(TextServer::OVERRUN_TRIM_ELLIPSIS);
|
||||
current_object_label->set_h_size_flags(SIZE_EXPAND_FILL);
|
||||
current_object_label->set_vertical_alignment(VERTICAL_ALIGNMENT_CENTER);
|
||||
current_object_label->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
|
||||
main_hb->add_child(current_object_label);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user