drewwilson / TipTip

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

Problems with width/height calculations #15

Closed jamiefdhurst closed 6 years ago

jamiefdhurst commented 11 years ago

When implementing Tiptip in my client's site, the element was appearing right in the top-left corner, and this was being caused by the margin calculation failing.

I debugged and traced it back to the outerWidth() and outerHeight() calls, which were returning elements instead of values. Forcing them to calculate the margin too (using the parameter) gets rid of this bug.

plajjan commented 11 years ago

Looks good! I have tested and the suggested change fixes the problem.

danimesq commented 7 years ago

Now you can close this pull request.