From fef534d8a5dd8dd5e62396b99c2875b223a03202 Mon Sep 17 00:00:00 2001 From: Dimitur Kirov Date: Sun, 7 Aug 2005 19:35:12 +0000 Subject: [PATCH] message line don;t get smaller that one line height --- src/chat.py | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/chat.py b/src/chat.py index 4ad9ab0d0..0aea93e73 100644 --- a/src/chat.py +++ b/src/chat.py @@ -433,13 +433,14 @@ class Chat: diff_y = message_height - requisition.height if diff_y is not 0: if conversation_height + diff_y < min_height: - message_scrolledwindow.set_property('vscrollbar-policy', - gtk.POLICY_AUTOMATIC) - message_scrolledwindow.set_property('hscrollbar-policy', - gtk.POLICY_AUTOMATIC) - message_scrolledwindow.set_property('height-request', message_height + \ - conversation_height - min_height) - self.bring_scroll_to_end(message_textview) + if message_height + conversation_height - min_height > min_height: + message_scrolledwindow.set_property('vscrollbar-policy', + gtk.POLICY_AUTOMATIC) + message_scrolledwindow.set_property('hscrollbar-policy', + gtk.POLICY_AUTOMATIC) + message_scrolledwindow.set_property('height-request', + message_height + conversation_height - min_height) + self.bring_scroll_to_end(message_textview) else: message_scrolledwindow.set_property('vscrollbar-policy', gtk.POLICY_NEVER)