I have a series of dynamically created tooltips that are initiated when clicking a small icon. The tooltips all have a default position of "right". To ensure that the tooltip doesn't cover the icon when opening I gave it a bit of a right margin to the outer div of 10px. For the vast majority of the tooltips it works perfectly. The problem arises when the icon that you click is on the right side of the page, and the tooltip opens to the left of the icon because otherwise it would push off the screen (that I'm guessing is the default behavior). Unfortunatly, when it does open to the left of the icon it still takes on the margin setting and then completely covers the icon that you clicked to open it.
My question is how do I give anything that open on "position right" a different style than items defaulting to the "position left". I've reviewed the Tooltip API, but don't see anything for a scenario like this.
Thanks,
J
My question is how do I give anything that open on "position right" a different style than items defaulting to the "position left". I've reviewed the Tooltip API, but don't see anything for a scenario like this.
Thanks,
J