Skip to content

Conversation

absar
Copy link

@absar absar commented Oct 3, 2022

Fixes #24. Adds new configurable option to not shrink wrap list items using S2ChoiceConfig.shrinkWrap or SmartSelect.single.choiceShrinkWrap/SmartSelect.multiple.choiceShrinkWrap.
If choiceShrinkWrap is true choices list will shrink wrap the choices, causing the list to resize based on the number of available choices, by default it will shrink wrap which was the default behaviour before this change.

Usage:

SmartSelect<T?>.single(
  choiceShrinkWrap: false
);
SmartSelect<T?>.multiple(
  choiceShrinkWrap: false
);

After fix if you pass SmartSelect.single.choiceShrinkWrap=false

SizeIssueFix.mp4

…list items using `S2ChoiceConfig.shrinkWrap` or `SmartSelect.single.choiceShrinkWrap`/`SmartSelect.multiple.choiceShrinkWrap`.

If `choiceShrinkWrap` is true choices list will shrink wrap the choices, causing the list to resize based on the number of available choices, by default it will shrink wrap which was the default behaviour before this change.
@absar
Copy link
Author

absar commented Oct 16, 2022

@vasilich6107 please merge this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make shrink wrapping items configurable to disable default behavior of resizing bottom sheet
1 participant