diff options
author | Christopher Speller <crspeller@gmail.com> | 2015-12-14 19:01:22 -0500 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2015-12-14 19:01:22 -0500 |
commit | 74f427fb1a5da8ccd0bbc4e4104830cfa12c70fb (patch) | |
tree | b063683a1ec022c3ccbb2561d30734e0a9156905 /web/react/components/posts_view.jsx | |
parent | 6c7c04f38d0485dadcd7dd0ea2ba3a95bdfde448 (diff) | |
parent | f51d45f6cba0e5a1249146afe4a1c78cf32b7598 (diff) | |
download | chat-74f427fb1a5da8ccd0bbc4e4104830cfa12c70fb.tar.gz chat-74f427fb1a5da8ccd0bbc4e4104830cfa12c70fb.tar.bz2 chat-74f427fb1a5da8ccd0bbc4e4104830cfa12c70fb.zip |
Merge branch 'release-1.3'
Diffstat (limited to 'web/react/components/posts_view.jsx')
-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; } |