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

Feature: Start View at Bottom #9237

Closed
jourdan-jobox opened this issue Nov 18, 2016 · 7 comments
Closed

Feature: Start View at Bottom #9237

jourdan-jobox opened this issue Nov 18, 2016 · 7 comments

Comments

@jourdan-jobox
Copy link

jourdan-jobox commented Nov 18, 2016

Hi everybody,

This feature would be extremely useful for a chat application, where the user should always see the most recent message first (i.e. the message that's rendered at the bottom of the page).

Currently, in order to workaround this, I have the following:

ionViewWillEnter() {
    // Scroll down to last message while view is being loaded
    setTimeout(() => {
      this.content.scrollToBottom(0);
    });
}

This isn't a very good workaround though. Sometimes, the user still sees the slight scroll (or rather, since I put 0 in scrollToBottom(), the user sees a jump to the bottom of the page).

Does anyone else have a better workaround at the moment?

@jourdan-jobox jourdan-jobox changed the title [Feat Request] Start View at Bottom Feature: Start View at Bottom Nov 18, 2016
@cleever
Copy link

cleever commented Nov 18, 2016

There are a good project that do it for angular 1:

https://github.com/Luegg/angularjs-scroll-glue

And another for angular 2, but seems to be unmaintained:

https://github.com/dharness/angular2-scroll-glue

@marcelgoya
Copy link

Hi @jourdan-jobox

I faced the same problem but I was able to solve it by displaying a placeholder view above the chat dialog until the view has finished loading the message items and until the scroll event has finished.

@brandyscarney brandyscarney added v2 and removed v2 labels Nov 18, 2016
@jgw96 jgw96 added the feature label Nov 18, 2016
@trakhimenok
Copy link

trakhimenok commented Nov 21, 2016

Maybe you should use <ion-footer>?

http://ionicframework.com/docs/v2/components/#toolbar-buttons

@jgw96
Copy link
Contributor

jgw96 commented Feb 6, 2017

Hello all! While this is an awesome feature request it is not something that we plan on doing anytime soon. Because of this I am going to move this to our internal feature tracking repo for now as it is just "collecting dust" here. Once we decide to implement this I will move it back. Thanks everyone for using Ionic!

@jgw96
Copy link
Contributor

jgw96 commented Feb 6, 2017

This issue was moved to driftyco/ionic-feature-requests#82

@Manduro
Copy link
Contributor

Manduro commented Mar 15, 2017

Good news: this feature will be added with PR #8099.

@ionitron-bot
Copy link

ionitron-bot bot commented Sep 3, 2018

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.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Sep 3, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants