diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2024-03-07 00:23:52 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2024-03-07 00:23:52 +0100 |
commit | 47429b674bcbbc5dc0a6d14406b1be8738f6e86d (patch) | |
tree | 0f9ef95ccba50086cabd3eb73319cea71166e314 | |
parent | 9d8e267131a636942772ed9a377f209538030c87 (diff) | |
parent | a03315e3d925677bb5ef4fc8ed553b1c70a272d1 (diff) | |
download | redot-engine-47429b674bcbbc5dc0a6d14406b1be8738f6e86d.tar.gz |
Merge pull request #88197 from passivestar/version-vertical-alignment
Fix vertical alignment of editor version `LinkButton` in the bottom panel
-rw-r--r-- | editor/gui/editor_bottom_panel.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/editor/gui/editor_bottom_panel.cpp b/editor/gui/editor_bottom_panel.cpp index 6a59d7a3a7..e567e42bdb 100644 --- a/editor/gui/editor_bottom_panel.cpp +++ b/editor/gui/editor_bottom_panel.cpp @@ -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); @@ -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); |