Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
gargVader opened this issue Jan 24, 2023 · 2 comments
Open

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

gargVader opened this issue Jan 24, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@gargVader
Copy link

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

@commandiron commandiron added the bug Something isn't working label Jan 25, 2023
@commandiron
Copy link
Owner

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?

@kasiopec
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants