LibGUI: Always set tree column content width to widest open node

Fixes hidable horizontal scrollbars remaining visible even after
collapsing their responsible nodes. Tree column width defaults to
column header width if wider than current content.
This commit is contained in:
thankyouverycool 2021-02-17 12:25:39 -05:00 committed by Andreas Kling
commit ef61a963e9
Notes: sideshowbarker 2024-07-18 22:05:21 +09:00

View file

@ -601,7 +601,7 @@ void TreeView::update_column_sizes()
return IterationDecision::Continue;
});
set_column_width(tree_column, max(this->column_width(tree_column), tree_column_width));
set_column_width(tree_column, tree_column_width);
}
int TreeView::tree_column_x_offset() const