Reply To: Formatting Tooltip boxes

PennController for IBEX Forums Support Formatting Tooltip boxes Reply To: Formatting Tooltip boxes

#7566
Jeremy
Keymaster

Hi,

Unfortunately that’s not something I anticipated when I designed the Tooltip element. The best you could do for now, I would say, is estimate the height of the top tooltip and apply a transform: translateY CSS rule to the bottom one, to move it below the top one. Here’s an example:

newCanvas("blue", 400,400).color('blue').print()
,
newTooltip("hello world").print( getCanvas("blue") )
,
newTooltip("bye earth").print( getCanvas("blue") ).css("transform","translateY(2.5em)")

Jeremy