-
Notifications
You must be signed in to change notification settings - Fork 20
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
Issues when items are not of uniform size #40
Comments
This looks like a regression the tests didn't catch. This was working smoothly before. Will check. |
@spacecowboy are you adding by any chance padding to the lazy column like this? contentPadding = PaddingValues(top = 400.dp)
Try removing the contentPadding and add it as a Spacer item the list. I think there is a bug in the |
@spacecowboy https://issuetracker.google.com/issues/358798740 I don't think I can do a workaround, so we will have to wait for this to be solved or not using contentpadding |
Will wait for upstream updates from compose team |
I did indeed have some vertical contentpadding. Removing it made it better, but if the thumbLength is fixed, it still can't reach the bottom. But it's better though: 3fixed.webmBut compare with the default values where it will vary in size but reach the bottom: 3default.webm |
Seems there are two distinct issues that are interacting together. I will recheck again in case I missed something. |
Ok, official compose devs said this is "working as intended". Will try to find a workaround. |
Thank you for your efforts @nanihadesuka |
First, thanks for the library. It really fills a gap in the compose eco system.
I tried to see what happened when I integrated it into my app and not entirely unexpectedly it behaves a bit weird when the items in the column are of varying sizes. Here is a video with the default settings:
ScrollBarDefault2.webm
As you can see, the scrollbar changes size as you scroll and even appears to flicker at some point.
I also tried setting the length of the indicator to a fixed value:
Which fixes the flickering, but has the side effect that the indicator can't reach the bottom of the screen:
ScrollBarFixedLength2.webm
Do you know of any setting that could be tweaked to improve the experience when the items are of varying size?
The text was updated successfully, but these errors were encountered: