-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
list.ScrollToBottom not scrolling to show the totality of the last Item #3829
Comments
I think this might be a duplicate of #2917. The list is using the scroll container internally as far as I know. |
As mentioned in slack (but it should have been done here), I think this has somerhing to do with item heights. I mean it's like the scrolling considers the initial item height, as when calling CreateItem callback. If I return a 3 lines label in this example, the scrolling is done correctly. |
Yes, not scrolling and not scrolling far enough are likely different. |
This issue was resolved. But I see it is possible still to reproduce it. I don't see a way to "fully resolve" this without adding a "read all lines and lay out my whole table" call, which may be useful for small tables where people just don't care about the performance it was built for. The solution is to either a) correct the template size to be representative, or b) to load your data and set the sizes before each item is shown. |
Checklist
Describe the bug
When calling .ScrollToBottom, the last list item should be entirely displayed, not only it's top part.
It works well if the last item height is the same as when createItem() function is called.
How to reproduce
Run the code and tap the button
Screenshots
Bad
Good
Example code
Fyne version
2.3.2
Go compiler version
1.20
Operating system and version
Windows 10
Additional Information
No response
The text was updated successfully, but these errors were encountered: