From 5394ce921f9e0f615a5bc64c2ae3122914b78a7b Mon Sep 17 00:00:00 2001
From: Denis Fomin <fominde@gmail.com>
Date: Wed, 30 Mar 2011 21:59:06 +0400
Subject: [PATCH] [mq]: Do_not_scroll_the_chat_if_you_started_typing_a_message

---
 src/chat_control.py | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/src/chat_control.py b/src/chat_control.py
index 3a5c7c33d0..7296db48ba 100644
--- a/src/chat_control.py
+++ b/src/chat_control.py
@@ -1231,20 +1231,16 @@ class ChatControlBase(MessageControl, ChatCommandProcessor, CommandTools):
                 if message_height + conversation_height - min_height > min_height:
                     policy = self.msg_scrolledwindow.get_property(
                             'vscrollbar-policy')
-                    # scroll only when scrollbar appear
                     if policy != gtk.POLICY_AUTOMATIC:
                         self.msg_scrolledwindow.set_property('vscrollbar-policy',
                                 gtk.POLICY_AUTOMATIC)
                         self.msg_scrolledwindow.set_property('height-request',
                                 message_height + conversation_height - min_height)
-                        self.bring_scroll_to_end(msg_textview)
             else:
                 self.msg_scrolledwindow.set_property('vscrollbar-policy',
                         gtk.POLICY_NEVER)
                 self.msg_scrolledwindow.set_property('height-request', -1)
-            self.conv_textview.bring_scroll_to_end(diff_y - 18, False)
-        else:
-            self.conv_textview.bring_scroll_to_end(diff_y - 18, self.smooth)
+
         self.smooth = True # reinit the flag
         # enable scrollbar automatic policy for horizontal scrollbar
         # if message we have in message_textview is too big
-- 
GitLab