fix treepar

This commit is contained in:
Til Schmitter 2026-05-11 14:26:00 +02:00
parent 77cf85cdc7
commit 9ab86e9c63
3 changed files with 5 additions and 7 deletions

View file

@ -1967,6 +1967,8 @@ html {
overflow-y: hidden;
}
#treepar {
position: fixed;
z-index: 1;
background: #fff;
background: var(--tree-bg);
left: -.96em;

View file

@ -22,8 +22,8 @@
<div id="treesuperh">
<a href="/" id="srv_name"><span id="favico_onpage"></span>{{ srv_name }}</a>
<div id="treeh"></div>
<ul class="ntree" id="treepar"></ul>
</div>
<ul class="ntree" id="treepar"></ul>
<ul id="docul"></ul>
<ul class="ntree" id="treeul"></ul>
<div id="thx_ff">&nbsp;</div>

View file

@ -7962,7 +7962,7 @@ var treectl = (function () {
compy();
}
if (!r.parpane || !r.pdir.length || y >= r.pdir.slice(-1)[0][0] || y <= r.pdir[0][0]) {
if (!r.parpane || !r.pdir.length) {
clmod(parp, 'off', 1);
r.pdirh = null;
}
@ -7986,11 +7986,7 @@ var treectl = (function () {
for (var a = 0, aa = els.length; a < aa; a++)
els[a].onclick = bad_proxy;
}
y = ebi('treeh').offsetHeight;
if (!fixedpos)
y += tree.offsetTop - yscroll();
y = (y - 3) + 'px';
y = ebi('treesuperh').offsetHeight + 'px';
if (parp.style.top != y)
parp.style.top = y;
}