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

Subtle scrolling bug in List when the last two items are of different size #5281

Open
2 tasks done
hkparker opened this issue Nov 21, 2024 · 0 comments
Open
2 tasks done
Labels
unverified A bug that has been reported but not verified

Comments

@hkparker
Copy link
Contributor

Checklist

  • I have searched the issue tracker for open issues that relate to the same problem, before opening a new one.
  • This issue only relates to a single bug. I will open new issues for any other problems.

Describe the bug

When using a list and attempting to scroll to the bottom, if the last item has a custom height that is larger than the previous item, the list doesn't scroll all the way down.

I think what's going on here is an assumption on this line that lastItemHeight, which is intended as a reference to the current item's height, is wrong. It is an accurate reference to the height of the item above the item in question, but we can't assume that the item in question is the same size.

How to reproduce

Set a custom height on the last item and scroll to bottom

Screenshots

No response

Example code

I don't have an example application for this one but could create one if really desired. Opening this since it came up in a conversation with @andydotxyz and I wanted to leave a note somewhere. Probably could be added as a test case and surfaced there.

Fyne version

2.5.2

Go compiler version

go1.22.5 linux/amd64

Operating system and version

Arch Linux

Additional Information

No response

@hkparker hkparker added the unverified A bug that has been reported but not verified label Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
unverified A bug that has been reported but not verified
Projects
None yet
Development

No branches or pull requests

1 participant