1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-12 13:20:55 +00:00

Merge pull request #71025 from DarkMessiah/enable_column_clip_content

Enable column clip content in ConnectionDock and FilesystemDock
This commit is contained in:
Rémi Verschelde
2023-01-18 08:36:10 +01:00
2 changed files with 2 additions and 0 deletions

View File

@@ -1196,6 +1196,7 @@ ConnectionsDock::ConnectionsDock() {
tree->set_columns(1); tree->set_columns(1);
tree->set_select_mode(Tree::SELECT_ROW); tree->set_select_mode(Tree::SELECT_ROW);
tree->set_hide_root(true); tree->set_hide_root(true);
tree->set_column_clip_content(0, true);
vbc->add_child(tree); vbc->add_child(tree);
tree->set_v_size_flags(Control::SIZE_EXPAND_FILL); tree->set_v_size_flags(Control::SIZE_EXPAND_FILL);
tree->set_allow_rmb_select(true); tree->set_allow_rmb_select(true);

View File

@@ -3127,6 +3127,7 @@ FileSystemDock::FileSystemDock() {
tree->set_allow_rmb_select(true); tree->set_allow_rmb_select(true);
tree->set_select_mode(Tree::SELECT_MULTI); tree->set_select_mode(Tree::SELECT_MULTI);
tree->set_custom_minimum_size(Size2(0, 15 * EDSCALE)); tree->set_custom_minimum_size(Size2(0, 15 * EDSCALE));
tree->set_column_clip_content(0, true);
split_box->add_child(tree); split_box->add_child(tree);
tree->connect("item_activated", callable_mp(this, &FileSystemDock::_tree_activate_file)); tree->connect("item_activated", callable_mp(this, &FileSystemDock::_tree_activate_file));