Last active
October 27, 2016 15:16
-
-
Save samselikoff/61ca60141b2973447c014c4f3f0b87d6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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