Skip to content

tooltip: Don't play games with max-width-chars

Matthias Clasen requested to merge tooltip-size-simplification into main

Setting max-width-chars to the number of characters in the string works ok only as long as the average char width we get from Pango matches reality. Sadly that seems not always the case, and this code was causing short Chinese tooltips to always be broken into two lines.

Fixes: #4470 (closed)

Merge request reports