mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 07:07:23 +00:00
LibGUI: Allow setting max visible items for ComboBoxes
This will govern the maximum number of items ComboBox windows display before scrolling content.
This commit is contained in:
committed by
Andreas Kling
parent
aa8e7aba42
commit
f86c5b1fa7
@@ -58,6 +58,7 @@ ComboBox::ComboBox()
|
||||
{
|
||||
REGISTER_STRING_PROPERTY("placeholder", editor_placeholder, set_editor_placeholder);
|
||||
REGISTER_BOOL_PROPERTY("model_only", only_allow_values_from_model, set_only_allow_values_from_model);
|
||||
REGISTER_INT_PROPERTY("max_visible_items", max_visible_items, set_max_visible_items);
|
||||
|
||||
set_min_size({ 40, 22 });
|
||||
set_preferred_size({ SpecialDimension::OpportunisticGrow, 22 });
|
||||
|
||||
Reference in New Issue
Block a user