drewwilson / TipTip

Intelligent ToolTip jQuery Plugin
http://code.drewwilson.com/entry/tiptip-jquery-plugin
124 stars 70 forks source link

Replace offset() by position() #21

Open cyrezdev opened 9 years ago

cyrezdev commented 9 years ago

The .position() method allows us to retrieve the current position of an element relative to the offset parent. Contrast this with .offset(), which retrieves the current position relative to the document. When positioning a new element near another one and within the same containing DOM element, .position() is the more useful. (cf. https://api.jquery.com/position/)

This prevents possible positioning issue if container manipulated by another script.

danimesq commented 8 years ago

Hi, @JoomliC I've forked TipTip to maintain it and use in all web projects of my community. Please clone your pull request to: https://github.com/Software-js/TipTip Thanks!