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

Need to reset the scroll position of table widget #1892

Closed
wenhsinhsieh opened this issue Feb 2, 2021 · 4 comments
Closed

Need to reset the scroll position of table widget #1892

wenhsinhsieh opened this issue Feb 2, 2021 · 4 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@wenhsinhsieh
Copy link

Is your feature request related to a problem? Please describe:

When the length of the table widget is changed, calling refresh function doesn't reset the scroll position, so if the number of row becomes less after refresh, the scroll position becomes out of bound, which doesn't look right.

Is it possible to construct a solution with the existing API?

No

Describe the solution you'd like to see:

Having a way to reset the scroll position to the top.

@andydotxyz andydotxyz added the enhancement New feature or request label Feb 2, 2021
@andydotxyz andydotxyz added this to the Aberlour (next release) milestone Feb 2, 2021
@andydotxyz
Copy link
Member

Just like #2105 we should probably expose some of the scrolll functions to allow this to happen.

@andydotxyz andydotxyz added the good first issue Good for newcomers label Apr 16, 2021
@andydotxyz
Copy link
Member

andydotxyz commented Jul 8, 2021

This probably applies to all 3 collections:

nealmcc added a commit to nealmcc/fyne that referenced this issue Jul 10, 2021
 - ScrollTo, ScrollToEnd, ScrollToStart
 - addresses fyne-io#1892
This was referenced Jul 10, 2021
@nealmcc
Copy link
Contributor

nealmcc commented Jul 11, 2021

The two pull requests combined should resolve this issue

@andydotxyz
Copy link
Member

On develop for testing and will be in the v2.1 release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants