wintercounter / Protip

A new generation jQuery Tooltip plugin
http://protip.rocks
MIT License
359 stars 38 forks source link

Variation of calculation gravity #20

Open kuzvac opened 8 years ago

kuzvac commented 8 years ago

Hi! I have edge case :) Currently gravity calculated on width/height page (window) itself. If tooltip outside of window area, it recalculate gravity and change position of tooltip. Is there any way to change calculating gravity from window itself to block on page? For example: if tooltip outside of block area, it recalculate gravity and change position of tooltip. Thank you again for this awesome plugin :)

wintercounter commented 8 years ago

This feature would be useful in some cases. I'll check on it later but maybe it'll land in 2.0 only.

kuzvac commented 8 years ago

Ok, thank you.