Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
C.Wo = function(a) {
if (a != (this.gg || 0)) {
var b = this.sg(a), c = b.C(), d;
d = Ki(this.B().ma()).wo;
var e, g = Nf(c), l = Cg(c, "position");
Se(c, "Parameter is required");
var m = zf && g[Qb] && !c.getBoundingClientRect && "absolute" == l && (e = g[Qb](c)) && (0 > e[Mb] || 0 > e[Nb]), q = new gf(0, 0), t;
e = g ? Nf(g) : h;
(t = !yf || yf && 9 <= Jf) || (t = "CSS1Compat" == Of(e).Va[Td]);
t = t ? e[mc] : e[Jd];
if (c != t)
if (c.getBoundingClientRect) {
n: {
var u;
try {
u = c.getBoundingClientRect()
} catch (x) {
e = {left: 0,top: 0,right: 0,bottom: 0};
break n
}
yf && c[Fc][Jd] && (e = c[Fc], $a(u, u.left - (e[mc].clientLeft +
e[Jd].clientLeft)), u.top -= e[mc].clientTop + e[Jd].clientTop);
e = u
}
c = Of(g).Va;
g = Af || "CSS1Compat" != c[Td] ? c[Jd] || c[mc] : c[mc];
c = c.parentWindow || c[qd];
g = yf && Hf("10") && c.pageYOffset != g[Ad] ? new gf(g[Lc], g[Ad]) : new gf(c.pageXOffset || g[Lc], c.pageYOffset || g[Ad]);
q.x = e.left + g.x;
q.y = e.top + g.y
} else if (g[Qb] && !m)
e = g[Qb](c), g = g[Qb](t), q.x = e[Mb] - g[Mb], q.y = e[Nb] - g[Nb];
else {
e = c;
do {
q.x += e.offsetLeft;
q.y += e[Vc];
e != c && (q.x += e.clientLeft || 0, q.y += e.clientTop || 0);
if (Af && "fixed" == Cg(e, "position")) {
q.x += g[Jd][Lc];
q.y += g[Jd][Ad];
break
}
e = e[vc]
} while (e && e != c);
if (xf || Af && "absolute" == l)
q.y -= g[Jd][Vc];
for (e = c; (e = Dg(e)) && e != g[Jd] && e != t; )
q.x -= e[Lc], xf && "TR" == e[Qc] || (q.y -= e[Ad])
}
xh(we(this.Un, this, q.y - d), 300);
b.Kj() && (b.nc() || b.expand());
Uo(this.B())[ub](p(a));
this.gg = a
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment