I worked around the problem with the help of the Dimensions plugin (http://jquery.com/plugins/project/dimensions):
var el = this;
el.fisheyeCfg = {
items : jQuery(options.items, this),
container: jQuery(options.container, this),
pos : jQuery.iUtil.getPosition(this),
itemWidth: options.itemWidth,
itemHeight: options.itemHeight,
itemsText: options.itemsText,
proximity: options.proximity,
valign: options.valign,
halign: options.halign,
maxWidth : options.maxWidth,
hideText: options.hideText
};
el.fisheyeCfg.pos.y = el.fisheyeCfg.pos.y + jQuery(window).scrollTop();
....
And I changed the window resize event a bit:
var window_resize = function()
{
el.fisheyeCfg.pos = jQuery.iUtil.getPosition(el);
el.fisheyeCfg.pos.y = el.fisheyeCfg.pos.y + jQuery(window).scrollTop();
jQuery.iLightbox.positionContainer(el, 0);
jQuery.iLightbox.positionItems(el);
};
jQuery(window)
.unbind('resize', window_resize)
.unbind('scroll', window_resize)
.bind('resize', window_resize)
.bind('scroll', window_resize);
I realize that I this is not a proper fix (because it doesn't handle left, only top), but perhaps it can help you put the proper fix in. I will try to do something similar to the drag/drop stuff.
Thanks!
I worked around the problem with the help of the Dimensions plugin (http://jquery.com/plugins/project/dimensions):
var el = this;
el.fisheyeCfg = {
items : jQuery(options.items, this),
container: jQuery(options.container, this),
pos : jQuery.iUtil.getPosition(this),
itemWidth: options.itemWidth,
itemHeight: options.itemHeight,
itemsText: options.itemsText,
proximity: options.proximity,
valign: options.valign,
halign: options.halign,
maxWidth : options.maxWidth,
hideText: options.hideText
};
el.fisheyeCfg.pos.y = el.fisheyeCfg.pos.y + jQuery(window).scrollTop();
....
And I changed the window resize event a bit:
var window_resize = function()
{
el.fisheyeCfg.pos = jQuery.iUtil.getPosition(el);
el.fisheyeCfg.pos.y = el.fisheyeCfg.pos.y + jQuery(window).scrollTop();
jQuery.iLightbox.positionContainer(el, 0);
jQuery.iLightbox.positionItems(el);
};
jQuery(window)
.unbind('resize', window_resize)
.unbind('scroll', window_resize)
.bind('resize', window_resize)
.bind('scroll', window_resize);
I realize that I this is not a proper fix (because it doesn't handle left, only top), but perhaps it can help you put the proper fix in. I will try to do something similar to the drag/drop stuff.
Thanks!