summaryrefslogtreecommitdiffstats
path: root/web/react/components/posts_view.jsx
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2015-12-14 18:46:19 -0500
committerChristopher Speller <crspeller@gmail.com>2015-12-14 18:46:19 -0500
commit1a004ef1bf4135db256914e80bb177ae4ecf92eb (patch)
treeeb156deaac60aed629e1020ed6cfce7ec5c05bd9 /web/react/components/posts_view.jsx
parentab367f2bc64c064a3da92424b637fa5fc0b0a01e (diff)
parent4af0cb7767d2e6a431b74f280a54b96d86ef7774 (diff)
downloadchat-1a004ef1bf4135db256914e80bb177ae4ecf92eb.tar.gz
chat-1a004ef1bf4135db256914e80bb177ae4ecf92eb.tar.bz2
chat-1a004ef1bf4135db256914e80bb177ae4ecf92eb.zip
Merge pull request #1724 from asaadmahmoodspin/sidebarFix
Fixing IE scrolling issue and also fixing horizontal scrollbar
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;
}