Bug Tracker

Opened 16 years ago

Closed 15 years ago

Last modified 15 years ago

#1265 closed bug (wontfix)

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:


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.

Change History (2)

comment:1 Changed 16 years ago by stevenbristo

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);



.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.


comment:2 Changed 15 years ago by scott.gonzal

Resolution: wontfix
Status: newclosed

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

Note: See TracTickets for help on using tickets.