Formatting Tooltip boxes

PennController for IBEX Forums Support Formatting Tooltip boxes

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #7564
    girlflamee
    Participant

    Hi Jeremy,

    I’m having issues with text from two Tooltip text boxes overlapping on top of one another in my experiment. Essentially I want them to be sequential such that one appears below the other. If you could help, that would be great.

    Thanks.

    #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

    #7571
    girlflamee
    Participant

    Thanks Jeremy, this works.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.