Tooltip with rich content async width/height calculation issue

I’m displaying a tool-tip with rich content (icons, bold text, etc) and I’m getting some really strange results. The calculated height and width for the tool-tip are being applied for the next tool-tip shown, leading to funky squishing / stretching / cropping happening if one tool-tip to the next has different height and width.

(see Clue tooltips stretched/squished/cropped when switching between tooltips of different sizes · Issue #10 · timcharper/EmojiClu · GitHub for a video)

The source in question showing the tooltip is here:

Is there some special thing I’m supposed to do to calculate the width / height of the tool-tip?

I’ve tried quite a few things, including scheduling a delayed queue_resize and delayed queue_reallocate but nothing I’ve tried has worked.

I suppose I could just pick a size for the tool-tip and stick with it, but I’d like to understand why this is happening.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.