diff options
author | Asaad Mahmood <asaad@spinpunch.com> | 2015-12-14 22:27:41 +0500 |
---|---|---|
committer | Asaad Mahmood <asaad@spinpunch.com> | 2015-12-14 22:27:41 +0500 |
commit | 95e0fd88fc281d8b4c5fa0f924a8bb014c682dda (patch) | |
tree | 83e52de991da40d152e4550c12f83ea5419208d8 /web/react | |
parent | ab367f2bc64c064a3da92424b637fa5fc0b0a01e (diff) | |
download | chat-95e0fd88fc281d8b4c5fa0f924a8bb014c682dda.tar.gz chat-95e0fd88fc281d8b4c5fa0f924a8bb014c682dda.tar.bz2 chat-95e0fd88fc281d8b4c5fa0f924a8bb014c682dda.zip |
Fixing IE scrolling issue and also fixing horizontal scrollbar
Diffstat (limited to 'web/react')
-rw-r--r-- | web/react/components/posts_view.jsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/web/react/components/posts_view.jsx b/web/react/components/posts_view.jsx index b7ac92672..cc4f5e138 100644 --- a/web/react/components/posts_view.jsx +++ b/web/react/components/posts_view.jsx @@ -233,7 +233,8 @@ export default class PostsView extends React.Component { window.requestAnimationFrame(() => { // If separator exists scroll to it. Otherwise scroll to bottom. if (this.refs.newMessageSeparator) { - this.refs.newMessageSeparator.scrollIntoView(); + var objDiv = this.refs.postlist; + objDiv.scrollTop = this.refs.newMessageSeparator.offsetTop; //scrolls node to top of Div } else { this.refs.postlist.scrollTop = this.refs.postlist.scrollHeight; } |