summaryrefslogtreecommitdiffstats
path: root/web/react/components
diff options
context:
space:
mode:
authorAsaad Mahmood <asaad@spinpunch.com>2015-12-14 22:27:41 +0500
committerAsaad Mahmood <asaad@spinpunch.com>2015-12-14 22:27:41 +0500
commit95e0fd88fc281d8b4c5fa0f924a8bb014c682dda (patch)
tree83e52de991da40d152e4550c12f83ea5419208d8 /web/react/components
parentab367f2bc64c064a3da92424b637fa5fc0b0a01e (diff)
downloadchat-95e0fd88fc281d8b4c5fa0f924a8bb014c682dda.tar.gz
chat-95e0fd88fc281d8b4c5fa0f924a8bb014c682dda.tar.bz2
chat-95e0fd88fc281d8b4c5fa0f924a8bb014c682dda.zip
Fixing IE scrolling issue and also fixing horizontal scrollbar
Diffstat (limited to 'web/react/components')
-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;
}