mirror of
https://github.com/9001/copyparty.git
synced 2026-06-21 05:32:25 -06:00
fix null ref on menter somewhere in tree header
This commit is contained in:
parent
a641fef9bf
commit
62321ae295
|
|
@ -7964,8 +7964,8 @@ var treectl = (function () {
|
||||||
function menter(e) {
|
function menter(e) {
|
||||||
var p = this.offsetParent,
|
var p = this.offsetParent,
|
||||||
pp = p.offsetParent,
|
pp = p.offsetParent,
|
||||||
ppy = pp.offsetTop,
|
ppy = pp ? pp.offsetTop : 0,
|
||||||
y = this.offsetTop + p.offsetTop + ppy - p.scrollTop - pp.scrollTop - (ppy ? document.documentElement.scrollTop : 0);
|
y = this.offsetTop + p.offsetTop + ppy - p.scrollTop - (pp ? pp.scrollTop : 0) - (ppy ? document.documentElement.scrollTop : 0);
|
||||||
|
|
||||||
this.style.top = y + 'px';
|
this.style.top = y + 'px';
|
||||||
this.style.position = 'fixed';
|
this.style.position = 'fixed';
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue