Skip to content

Commit

Permalink
Merge pull request godotengine#93129 from passivestar/object-selector…
Browse files Browse the repository at this point in the history
…-label

Center the label in EditorObjectSelector
  • Loading branch information
akien-mga committed Jun 13, 2024
2 parents 172b4dc + fccfda2 commit 1567a49
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions editor/gui/editor_object_selector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 1567a49

Please sign in to comment.