Tooltip text gets cropped

If you are using very long strings without tabs or spaces in them (e.g. a long file path), those will get cropped.
E.g. the file path "C:\top_folder\sub_folder\sub_sub_folder\sub_sub_sub_folder\sub_sub_sub_sub_folder\somefile.txt" will show up like this:

Tooltip_issue
Currently, that will also add an empty area on the right side of the tooltip, but that will be fixed.

There are two things you can do:
– add zero-width space characters (\u200b) wherever you are ok with the string being broken into a new line (e.g. after each \ character in the file path)
– add an ellipsis character (\u2026) at the point where the rest of the information is not important
(the tooltip width is 300 pixels which would allow about 40-50 characters in a line) 

Tooltip_fixed

-Adam


Comments

Leave a Reply

Discover more from Autodesk Developer Blog

Subscribe now to keep reading and get access to the full archive.

Continue reading