Skip to main content

Bug Tracker

Side navigation

#1265 closed bug (wontfix)

Opened June 02, 2007 04:32PM UTC

Closed March 31, 2008 01:40AM UTC

Last modified October 14, 2008 10:22AM UTC

Interface fisheye position:fixed; breaks

Reported by: stevenbristol Owned by: stefan
Priority: major Milestone: 1.1.3
Component: interface Version: 1.1.2
Keywords: Cc:
Blocked by: Blocking:
Description

If you use the fisheye as a fixed position element and scroll the page, the mousemove events are tied to the previous location and can not be accurately rebound to the new location.

Attachments (0)
Change History (2)

Changed June 02, 2007 05:19PM UTC by stevenbristo comment:1

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!

Changed March 31, 2008 01:40AM UTC by scott.gonzal comment:2

resolution: → wontfix
status: newclosed

Interface is no longer supported; consider switching to jQuery UI.