You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Tooltip wrapping can leave lines wider than their configured limit #10590
When the next word doesn't fit within a tooltip's maximum width, it should go on the next line.
How does Path of Building behave?
main:WrapString first adds the word that goes over the limit and only then breaks the line, so wrapped lines end up wider than the limit. The last line is never checked at all. Tooltip:AddLine uses this for every tooltip that has a maximum width.
How to reproduce the issue
With a font where every character is one unit wide, main:WrapString("aa bb cc dd", 16, 5) returns {"aa bb cc", "dd"}. It should return {"aa bb", "cc dd"}.
Activity