mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-08 17:19:13 +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:
parent
207409c925
commit
1097f3066e
Notes:
sideshowbarker
2024-07-17 04:10:16 +09:00
Author: https://github.com/thankyouverycool
Commit: 1097f3066e
Pull-request: https://github.com/SerenityOS/serenity/pull/18177
2 changed files with 6 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue