May 31, 2002

Fisheye Menu 1.01 Patch

Thanks to Robert for pointing out that oversized focusLength parameter values will screw up the rendering. I've fixed the problem and also added failsafes for oversized maxSize parameter values. It's recommended that you download version 1.01 here if you intend to use this component for your own projects.

-Sam

Posted by samuel at May 31, 2002 11:19 PM
Comments

,njk845974d c, cb

Posted by: at June 18, 2002 06:57 AM

hey sam -- i think there's another case you missed. try out a list with a small number of items. make sure you have enough items that it's a fisheye:

(this.height < this.getLength() * this.maxSize)

but not so many that this.getAscendingH returns a number less than maxSize.

i guess what i'm saying is, for small numbers of items, getAscendingH can return a value larger than this.maxSize, and so you get a scaled item in the left range whose height is greater than that of the items in the focusSpan.

i've hacked a temporary fix in by changing the return of getAscendingH to:

return Math.min(this.maxSize, (b - a));

but that still looks a bit strange, since there are items outside the focusSpan that are just as large as the items inside.

is this just "the way fisheye works" or is it a fixable bug?

-- ben

Posted by: Ben Chun at July 27, 2002 10:10 PM

by the way, i found a practical (?) use for this thing:

http://benchun.net/dj

mouse around in the section called "Past" ...

Posted by: Ben Chun at July 27, 2002 10:37 PM

Hi, I just wanted so say thank you guys ! i really like your site and i hope you'll continue to improving it.

Posted by: viagra at January 25, 2004 12:05 AM
Post a comment









Enter the letters as shown in the box below:



Remember personal info?