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

Appending opentip-container elements to a custom element (instead of document.body). #124

Open krisrogers opened 9 years ago

krisrogers commented 9 years ago

I have found that when the tooltip is following the mouse, right on the edge of the viewport, it is possible to cause the body to overflow. Screenshots below demonstrate:

no overflow screenshot from 2015-03-31 09 56 47

overflow screenshot from 2015-03-31 09 56 57

I cannot disable overflow on the body due to the nature of the overall layout. Ideally I would like to see the opentip-container elements optionally added to a custom element (child of body) for which I can set to the viewport dimensions and disable all overflow.

PS - Thanks for easily the best tooltip library I have used!