Skip to content
Snippets Groups Projects
Commit 471329a0 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

prevent too long tooltips. Fixes #8465

parent ab0a98ac
No related branches found
No related tags found
No related merge requests found
......@@ -913,6 +913,8 @@ class HtmlTextView(Gtk.TextView):
return
text = getattr(tag, 'title', False)
if text:
if len(text) > 50:
text = text[:47] + '...'
position = w.get_origin()[1:]
self.tooltip.show_tooltip(text, 8, position[1] + y)
......
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