|
44 | 44 | #include "editor/gui/editor_bottom_panel.h" |
45 | 45 | #include "editor/plugins/script_editor_plugin.h" |
46 | 46 | #include "editor/themes/editor_scale.h" |
| 47 | +#include "scene/gui/flow_container.h" |
47 | 48 | #include "scene/gui/separator.h" |
48 | 49 |
|
49 | 50 | #define CHECK_PLUGIN_INITIALIZED() \ |
@@ -1300,14 +1301,15 @@ VersionControlEditorPlugin::VersionControlEditorPlugin() { |
1300 | 1301 |
|
1301 | 1302 | version_commit_dock->add_child(memnew(HSeparator)); |
1302 | 1303 |
|
1303 | | - HBoxContainer *menu_bar = memnew(HBoxContainer); |
| 1304 | + HFlowContainer *menu_bar = memnew(HFlowContainer); |
1304 | 1305 | menu_bar->set_h_size_flags(Control::SIZE_EXPAND_FILL); |
1305 | 1306 | menu_bar->set_v_size_flags(Control::SIZE_FILL); |
1306 | 1307 | version_commit_dock->add_child(menu_bar); |
1307 | 1308 |
|
1308 | 1309 | branch_select = memnew(OptionButton); |
1309 | 1310 | branch_select->set_tooltip_text(TTR("Branches")); |
1310 | 1311 | branch_select->set_h_size_flags(Control::SIZE_EXPAND_FILL); |
| 1312 | + branch_select->set_clip_text(true); |
1311 | 1313 | branch_select->connect(SceneStringName(item_selected), callable_mp(this, &VersionControlEditorPlugin::_branch_item_selected)); |
1312 | 1314 | branch_select->connect(SceneStringName(pressed), callable_mp(this, &VersionControlEditorPlugin::_refresh_branch_list)); |
1313 | 1315 | menu_bar->add_child(branch_select); |
@@ -1353,6 +1355,7 @@ VersionControlEditorPlugin::VersionControlEditorPlugin() { |
1353 | 1355 | remote_select = memnew(OptionButton); |
1354 | 1356 | remote_select->set_tooltip_text(TTR("Remotes")); |
1355 | 1357 | remote_select->set_h_size_flags(Control::SIZE_EXPAND_FILL); |
| 1358 | + remote_select->set_clip_text(true); |
1356 | 1359 | remote_select->connect(SceneStringName(item_selected), callable_mp(this, &VersionControlEditorPlugin::_remote_selected)); |
1357 | 1360 | remote_select->connect(SceneStringName(pressed), callable_mp(this, &VersionControlEditorPlugin::_refresh_remote_list)); |
1358 | 1361 | menu_bar->add_child(remote_select); |
|
0 commit comments