1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 04:17:35 +00:00

LibGUI: Open and increment ComboBox ListViews by exact steps

This feels a bit nicer and always places the current index at the top
of visible content in long scrollable lists.
This commit is contained in:
thankyouverycool 2023-04-02 13:26:35 -04:00 committed by Andreas Kling
parent 207409c925
commit 1097f3066e
2 changed files with 6 additions and 2 deletions

View file

@ -21,6 +21,7 @@ ListView::ListView()
set_background_role(ColorRole::Base);
set_foreground_role(ColorRole::BaseText);
set_searchable(true);
vertical_scrollbar().set_step(item_height());
}
ListView::~ListView() = default;