I'm building a simple Ember CLI based chat app. I have a list of messages which are asynchronously loaded, and I want to scroll to the bottom when they are all loaded using some simple JS like this:
Ember.$('.conversation').scrollTop( Ember.$('.conversation')[0].scrollHeight );
Where should I put this code such that it runs after all the message objects are loaded and rendered?
Many thanks
Aucun commentaire:
Enregistrer un commentaire