Craga89/qTip2 — Issue #273: Viewport scroll and repositioning: I want to turn it off
Author: benogle
Created: 2011-11-09 03:21:37+00:00
State: open

I have a usecase where the tip should not try to reposition when the viewport is scrolled.

I setup the tip with a `position.viewport`. The code at https://github.com/Craga89/qTip2/blob/master/src/core.js#L581 checks for the existence of a viewport, then binds to a scroll event.

It'd be awesome to have an option to turn this off. I added an option: `adjust.scroll` and I modified my version like so:

if((targets.viewport.length && posOptions.adjust.scroll != false)|| (IE6 && tooltip.css('position') === 'fixed')) {
targets.viewport.bind('scroll'+namespace, repositionMethod);
}

Ben