-
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
this.content.scrollToBottom(); stopped working #11051
Comments
Hello, thanks for using Ionic! This has been fixed in 3.0 which was just released a few minutes ago (: |
Thanks would be great. If you could link to docs on how to upgrade to ionic3 that will be great. All i see out there is IONIC 3 beta is out, but I don't want to upgrade to beta on our production software. Everywhere on your site, docs and blogs, you still have announcements like 'Announcing IONIC 2.0 final!' |
I didn't notice it was a UIWebView only issue. I am working in a good fix for UI right now. But in the meantime, what is stoping you to use WKWebView? We have plans to deprecate UI very soon, making WK the default option. |
I upgrade to ionic 3 beta, and the issue still exists. |
@nishantpant could try this nightly release? |
I just pulled all latest updates to ionic3 and this seems fixed now. |
Not working on ionic 4 :'( |
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out. |
Ionic version: (check one with "x")
[ ] 1.x
[X ] 2.x
I'm submitting a ... (check one with "x")
[X] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or http://ionicworldwide.herokuapp.com/
Current behavior:
In my chat application, i had the following code which was working fine till last week. The code simply scrolls the chat content to the bottom. But I don't which npm update caused this, but this code has completely stopped working. All the UI does is flash in place as if it is trying to scroll but does not scroll at all. Interesting thing is it works fine in Chrome browser and scrolls as expected. But not on IOS 10.
Expected behavior:
this.content.scrollToBottom() should scroll it to the end of the ion-content.
Steps to reproduce:
Related code:
Code Snippets from .TS file
@ViewChild(Content) content: Content;
ionViewDidEnter() {
setTimeout(() => {
this.content.scrollToBottom();
}, 500);
}
Other information:
I have tried without setTimeOut. Also, tried adding this.content.scrollToBottom(300). But nothing works. I never touched this code, so obviously something else broke it.
Ionic info: (run
ionic info
from a terminal/cmd prompt and paste output below):The text was updated successfully, but these errors were encountered: