summaryrefslogtreecommitdiffstats
path: root/web/react/components/posts_view.jsx
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2015-12-14 19:01:22 -0500
committerChristopher Speller <crspeller@gmail.com>2015-12-14 19:01:22 -0500
commit74f427fb1a5da8ccd0bbc4e4104830cfa12c70fb (patch)
treeb063683a1ec022c3ccbb2561d30734e0a9156905 /web/react/components/posts_view.jsx
parent6c7c04f38d0485dadcd7dd0ea2ba3a95bdfde448 (diff)
parentf51d45f6cba0e5a1249146afe4a1c78cf32b7598 (diff)
downloadchat-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.jsx3
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;
}