witten
/
luminotes
Archived
1
0
Fork 0

Hack to MochiKit's Visual.ScrollTo() to make it work in IE.

This commit is contained in:
Dan Helfman 2007-10-31 22:48:15 +00:00
parent 8c498e2c0b
commit bb9fff5e6f
1 changed files with 1 additions and 13 deletions

14
static/js/MochiKit.js vendored
View File

@ -6385,20 +6385,8 @@ var _672=p.cumulativeOffset(this.element);
if(this.options.offset){
_672.y+=this.options.offset;
}
var max;
if(window.innerHeight){
max=window.innerHeight-window.height;
}else{
if(document.documentElement&&document.documentElement.clientHeight){
max=document.documentElement.clientHeight-document.body.scrollHeight;
}else{
if(document.body){
max=document.body.clientHeight-document.body.scrollHeight;
}
}
}
this.scrollStart=p.windowOffset.y;
this.delta=(_672.y>max?max:_672.y)-this.scrollStart;
this.delta=_672.y-this.scrollStart;
},update:function(_674){
var p=MochiKit.Position;
p.prepare();