Fixed option for Hovertip position
dkruglyak - August 7, 2007 - 06:45
| Project: | Hovertips and Clicktips |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs work |
Description
Right now hovertip XY position is set against mouse cursor and therefore varies depending on where mouse stops.
However when hovertip selector is a large element (e.g. BIG header tabs) it could be desirable to position the target relative to the selector (e.g. 10px under, aligned to the left border), rather than the mouse. Perhaps this would require replacing the call to hovertipShowUnderMouse with an alternative function.
We need an API and changes to JS code to implement this. What is the best way?

#1
First crack at the code aligning hovertips right under the selector element. Relies on jQuery Dimensions plugin.
Works fine, but not really release quality code. Need to transform the raw code into a workable API.
Includes syntax fixes to support JS compressor.