enyo / opentip

Opentip is an open source javascript tooltip based on the protoype framework.
http://www.opentip.org
1.25k stars 401 forks source link

Prevent overlap with target element? #140

Open tconroy opened 8 years ago

tconroy commented 8 years ago

hey.. how do I prevent the tooltip from covering / overlapping the target element? I want the target to remain completely visible, with the tooltip positioned otuside its bounding box (top/left/right/bottom, doesn't matter).

EllDoubleYew commented 8 years ago

You can move it out of the way using the offset option. Usage is offset: [x,y]. Using a -y value will move the element up when it is pointing down at the target