message line don;t get smaller that one line
height
This commit is contained in:
parent
cbbbb4d511
commit
fef534d8a5
1 changed files with 8 additions and 7 deletions
|
@ -433,12 +433,13 @@ class Chat:
|
||||||
diff_y = message_height - requisition.height
|
diff_y = message_height - requisition.height
|
||||||
if diff_y is not 0:
|
if diff_y is not 0:
|
||||||
if conversation_height + diff_y < min_height:
|
if conversation_height + diff_y < min_height:
|
||||||
|
if message_height + conversation_height - min_height > min_height:
|
||||||
message_scrolledwindow.set_property('vscrollbar-policy',
|
message_scrolledwindow.set_property('vscrollbar-policy',
|
||||||
gtk.POLICY_AUTOMATIC)
|
gtk.POLICY_AUTOMATIC)
|
||||||
message_scrolledwindow.set_property('hscrollbar-policy',
|
message_scrolledwindow.set_property('hscrollbar-policy',
|
||||||
gtk.POLICY_AUTOMATIC)
|
gtk.POLICY_AUTOMATIC)
|
||||||
message_scrolledwindow.set_property('height-request', message_height + \
|
message_scrolledwindow.set_property('height-request',
|
||||||
conversation_height - min_height)
|
message_height + conversation_height - min_height)
|
||||||
self.bring_scroll_to_end(message_textview)
|
self.bring_scroll_to_end(message_textview)
|
||||||
else:
|
else:
|
||||||
message_scrolledwindow.set_property('vscrollbar-policy',
|
message_scrolledwindow.set_property('vscrollbar-policy',
|
||||||
|
|
Loading…
Add table
Reference in a new issue