Skip to content

Commit

Permalink
Fix vertical alignment of editor version LinkButton in the bottom p…
Browse files Browse the repository at this point in the history
…anel
  • Loading branch information
passivestar committed Mar 6, 2024
1 parent 9b94c80 commit a03315e
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions editor/gui/editor_bottom_panel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -250,13 +250,6 @@ EditorBottomPanel::EditorBottomPanel() {
editor_toaster = memnew(EditorToaster);
bottom_hbox->add_child(editor_toaster);

VBoxContainer *version_info_vbox = memnew(VBoxContainer);
bottom_hbox->add_child(version_info_vbox);

// Add a dummy control node for vertical spacing.
Control *v_spacer = memnew(Control);
version_info_vbox->add_child(v_spacer);

version_btn = memnew(LinkButton);
version_btn->set_text(VERSION_FULL_CONFIG);
String hash = String(VERSION_HASH);
Expand All @@ -276,7 +269,8 @@ EditorBottomPanel::EditorBottomPanel() {
}
version_btn->set_tooltip_text(vformat(TTR("Git commit date: %s\nClick to copy the version information."), build_date));
version_btn->connect("pressed", callable_mp(this, &EditorBottomPanel::_version_button_pressed));
version_info_vbox->add_child(version_btn);
version_btn->set_v_size_flags(Control::SIZE_SHRINK_CENTER);
bottom_hbox->add_child(version_btn);

// Add a dummy control node for horizontal spacing.
Control *h_spacer = memnew(Control);
Expand Down

0 comments on commit a03315e

Please sign in to comment.