20090407

പ്രോടോടിപേ ബഗ്

jrochkind
September 5th, 2008 @ 08:36 PM
Okay, I have a patch that seems to work. I don't entirely understand what I'm doing, so use with caution. And sorry I don't have a clean prototype to actually make a real patch (or know how to, for that matter).

But in Prototype 1.6.0.2, there is a wrapper for viewportOffset for IE, that has a bug in it.

Look for the line:

var offsetParent = element.getOffsetParent();

Change to:

var offsetParent = (element.parent) ? element.getOffsetParent() : 0;

Seems to do the trick for me.

Seems like it's actually a prototype bug, not a scriptaculous one? But not really sure.

--
map{ map{tr|10|# |;print} split//,sprintf"%.8b\n",$_}
unpack'C*',unpack'u*',"5`#8<3'X`'#8^-@`<-CPP`#8V/C8`"

1 comment: