From 646214b49b47752cf170d7e6677e9464c2a3f786 Mon Sep 17 00:00:00 2001
From: Joram Wilander <jwawilander@gmail.com>
Date: Mon, 17 Aug 2015 11:35:30 -0400
Subject: Revert "Mm 1640 Fixed odd scrolling issues on channel refresh"

---
 web/react/components/sidebar_right.jsx | 6 ++++++
 1 file changed, 6 insertions(+)

(limited to 'web/react/components/sidebar_right.jsx')

diff --git a/web/react/components/sidebar_right.jsx b/web/react/components/sidebar_right.jsx
index 7ceccb45c..8334b345b 100644
--- a/web/react/components/sidebar_right.jsx
+++ b/web/react/components/sidebar_right.jsx
@@ -38,6 +38,10 @@ module.exports = React.createClass({
             }
         }
     },
+    resize: function() {
+        $(".post-list-holder-by-time").scrollTop(100000);
+        $(".post-list-holder-by-time").perfectScrollbar('update');
+    },
     getInitialState: function() {
         return getStateFromStores();
     },
@@ -45,6 +49,7 @@ module.exports = React.createClass({
         if (! (this.state.search_visible || this.state.post_right_visible)) {
             $('.inner__wrap').removeClass('move--left').removeClass('move--right');
             $('.sidebar--right').removeClass('move--left');
+            this.resize();
             return (
                 <div></div>
             );
@@ -54,6 +59,7 @@ module.exports = React.createClass({
         $('.sidebar--left').removeClass('move--right');
         $('.sidebar--right').addClass('move--left');
         $('.sidebar--right').prepend('<div class="sidebar__overlay"></div>');
+        this.resize();
         setTimeout(function(){
             $('.sidebar__overlay').fadeOut("200", function(){
                 $(this).remove();
-- 
cgit v1.2.3-1-g7c22

