Merge pull request #34553 from timothyqiu/center-dock-position
Centers label text in Dock Select popup panel
This commit is contained in:
commit
22782d519c
|
@ -5828,6 +5828,7 @@ EditorNode::EditorNode() {
|
||||||
Label *dock_label = memnew(Label);
|
Label *dock_label = memnew(Label);
|
||||||
dock_label->set_text(TTR("Dock Position"));
|
dock_label->set_text(TTR("Dock Position"));
|
||||||
dock_label->set_h_size_flags(Control::SIZE_EXPAND_FILL);
|
dock_label->set_h_size_flags(Control::SIZE_EXPAND_FILL);
|
||||||
|
dock_label->set_align(Label::ALIGN_CENTER);
|
||||||
dock_hb->add_child(dock_label);
|
dock_hb->add_child(dock_label);
|
||||||
|
|
||||||
dock_tab_move_right = memnew(ToolButton);
|
dock_tab_move_right = memnew(ToolButton);
|
||||||
|
|
Loading…
Reference in New Issue