1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-28 21:32:07 +00:00

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
parent 2df219d608
commit ef61a963e9

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