Enable column clip content in ConnectionDock and FilesystemDock

This commit is contained in:
Stanislav Labzyuk 2023-01-07 14:05:10 +01:00
parent d642274f75
commit 86d61a99fb
2 changed files with 2 additions and 0 deletions

View file

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

View file

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