set policy to never when needed to height is good
This commit is contained in:
parent
4f46b4e7c1
commit
0a6ccd34e9
1 changed files with 3 additions and 0 deletions
|
@ -695,6 +695,9 @@ class Chat:
|
||||||
if requisition.width > message_width:
|
if requisition.width > message_width:
|
||||||
message_scrolledwindow.set_property('hscrollbar-policy',
|
message_scrolledwindow.set_property('hscrollbar-policy',
|
||||||
gtk.POLICY_AUTOMATIC)
|
gtk.POLICY_AUTOMATIC)
|
||||||
|
else:
|
||||||
|
message_scrolledwindow.set_property('hscrollbar-policy',
|
||||||
|
gtk.POLICY_NEVER)
|
||||||
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue