Skip to content

Instantly share code, notes, and snippets.

@samselikoff
Last active October 27, 2016 15:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samselikoff/61ca60141b2973447c014c4f3f0b87d6 to your computer and use it in GitHub Desktop.
Save samselikoff/61ca60141b2973447c014c4f3f0b87d6 to your computer and use it in GitHub Desktop.
// chat-box.js
import Ember from 'ember';
export default Ember.Component.extend({
didRender() {
this._super(...arguments);
if (this.get('isScrolledToBottom')) {
this.$('ul')[0].scrollTop = this.$('ul')[0].scrollHeight;
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment