How to avoid page scroll when using qtip?

Sten Van den Bergh picture Sten Van den Bergh · Apr 28, 2011 · Viewed 7.7k times · Source

I'm a big fan of qTip, but I was wondering if there was a way to use the modal window without having your page scroll to the top.

Have looked around but haven't found anything yet. Is this possible?

Answer

Upvote picture Upvote · Apr 28, 2011

Yes it is possible! You need to set the adjust field

adjust : {
    screen : true
}

where you specify the position of the tooltip

position : {
    my : 'right center',
    at : 'left center',
    adjust : {
        screen : true
    }
}

I am not sure if that is a feature of qTip1 but I used in in qtip2. The tooltip is adjusted automatically to avoid overflow and scrolling