mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 01:37:34 +00:00
LibGUI: Apply horizontal padding evenly for ListView items
This commit is contained in:
parent
930e5c27df
commit
8b4bf96db3
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ void ListView::update_content_size()
|
|||
int content_width = 0;
|
||||
for (int row = 0, row_count = model()->row_count(); row < row_count; ++row) {
|
||||
auto text = model()->index(row, m_model_column).data();
|
||||
content_width = max(content_width, font().width(text.to_string()) + horizontal_padding() + 1);
|
||||
content_width = max(content_width, font().width(text.to_string()) + horizontal_padding() * 2);
|
||||
}
|
||||
|
||||
content_width = max(content_width, widget_inner_rect().width());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue