summaryrefslogtreecommitdiffstats
path: root/editor
diff options
context:
space:
mode:
authorpassivestar <60579014+passivestar@users.noreply.github.com>2024-06-13 15:50:17 +0400
committerpassivestar <60579014+passivestar@users.noreply.github.com>2024-06-13 15:50:17 +0400
commitfccfda2706e1d822ecbc76f7f12f0cebc3b020f0 (patch)
tree547fcc0773a420b00dc71c7d037f12bfd2695217 /editor
parente351b89117664c39d7e314ad0f36c59b0e941cf6 (diff)
downloadredot-engine-fccfda2706e1d822ecbc76f7f12f0cebc3b020f0.tar.gz
Center the label in EditorObjectSelector
Diffstat (limited to 'editor')
-rw-r--r--editor/gui/editor_object_selector.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/editor/gui/editor_object_selector.cpp b/editor/gui/editor_object_selector.cpp
index 0985753430..434aef1419 100644
--- a/editor/gui/editor_object_selector.cpp
+++ b/editor/gui/editor_object_selector.cpp
@@ -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);