-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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
issue - scrolling on device : scroll to top #5810
Comments
Hello, thanks for submitting your issue! Would you be able to provide some code (repo, codepen etc) so that we can repro the issue? Also would you mind running |
Alright here is an example to run on an Android device. Have yet to try this on iOS. On the device, press one of the lower ion-inputs. The keyboard should open up and the ion-list will scroll so that the image is not visible. When you hide the keyboard, the content does not return to it's original position. If I press the Next button and the div's swap, you'll see why I want a scrollToTop() function to fix the ion-list scroll position. Ultimately it would be best for the padding to go away back to how it was after the keyboard is dismissed. TS
HTML
Cordova CLI: 6.0.0 |
I think #5536 is also referring to the same issue. |
I'm tagging reports of the keyboard padding overstaying its welcome back to #5432 as a canonical issue. This thread still has the initial feature request outstanding. |
This should be fixed in this commit: e21c4d5 Also, ion-content does have Hope that helps, thanks for the report |
No love for scrollToBottom() ? It would handy in my current Ionic project. |
@nunoarruda: See bef4a67 |
@dylanvdmerwe yeah, Adam notified me after making that commit. Thanks anyway! |
Short description of the problem:
It would be great to be able to programatically move an ion-list scroll position. For example: scrollToTop() or scrollToBottom() methods.
What behavior are you expecting?
Especially on Android, after the keyboard is open, the padding added to the bottom of the screen does not go away (this may be a bug?). As such, I sometimes need to scroll the screen back to the top as the scrolling position is whack.
Which Ionic Version? 2.x
** Platforms: All
The text was updated successfully, but these errors were encountered: