diff options
author | thankyouverycool <66646555+thankyouverycool@users.noreply.github.com> | 2021-02-17 12:25:39 -0500 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-02-20 22:27:52 +0100 |
commit | ef61a963e92a6b2e8a0f7f7af823289b75397a41 (patch) | |
tree | dd9e0e7e1b121d66547bfb5cdca78dabafdb4e4f /Userland | |
parent | 2df219d608bcb49dfd684d3532b3635c18de9828 (diff) | |
download | serenity-ef61a963e92a6b2e8a0f7f7af823289b75397a41.zip |
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.
Diffstat (limited to 'Userland')
-rw-r--r-- | Userland/Libraries/LibGUI/TreeView.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibGUI/TreeView.cpp b/Userland/Libraries/LibGUI/TreeView.cpp index be91aaaf61..81c2cc07df 100644 --- a/Userland/Libraries/LibGUI/TreeView.cpp +++ b/Userland/Libraries/LibGUI/TreeView.cpp @@ -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 |