Skip to content
Snippets Groups Projects
Commit bb4873e2 authored by Daniel Brötzmann's avatar Daniel Brötzmann Committed by Philipp Hörist
Browse files

ConversationTextview: Fix vertical size allocation

parent 9dd1dc89
No related branches found
No related tags found
No related merge requests found
......@@ -15,6 +15,7 @@
import logging
from urllib.parse import quote
from gi.repository import GLib
from gi.repository import GObject
from gi.repository import Gtk
from gi.repository import Pango
......@@ -210,6 +211,11 @@ def print_text(self, text, other_text_tags=None, kind=None, graphics=True,
self.parse_formatting(
text, text_tags, graphics=graphics, additional_data=additional_data)
# Queue a widget resize after the Textview has been populated.
# This prevents for example large allocations of vertial space (blank
# space after the text) for messages containing many line breaks.
GLib.idle_add(self.queue_resize)
def parse_formatting(self, text, text_tags, graphics=True,
additional_data=None):
'''
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment