WheelPickerCompose icon indicating copy to clipboard operation
WheelPickerCompose copied to clipboard

Add note in doc and API comment that rowCount should be odd

Open gargVader opened this issue 2 years ago • 2 comments

When the rowCount is even, then the middle two rows are highlighted. Odd count gives correct behavior

gargVader avatar Jan 24 '23 15:01 gargVader

Hi, you are right. I realized before. Comment could be useful too. I will add next release. Actually row count must be get only odd paramenters but i couldn't find any function about this like IntRange. Any idea?

commandiron avatar Jan 25 '23 06:01 commandiron

You could maybe do something like val rowCount = if (listPickerContent.size % 2 == 0) listPickerContent.size + 1 else listPickerContent.size

kasiopec avatar Feb 10 '23 10:02 kasiopec