mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-09 11:06:10 +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:
parent
2df219d608
commit
ef61a963e9
Notes:
sideshowbarker
2024-07-18 22:05:21 +09:00
Author: https://github.com/thankyouverycool
Commit: ef61a963e9
Pull-request: https://github.com/SerenityOS/serenity/pull/5434
1 changed files with 1 additions and 1 deletions
|
@ -601,7 +601,7 @@ void TreeView::update_column_sizes()
|
||||||
return IterationDecision::Continue;
|
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
|
int TreeView::tree_column_x_offset() const
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue