mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 17:12:13 -06:00
fix the treesize off-by-one (*finally*)
This commit is contained in:
parent
03d692db66
commit
58040cc0ed
|
@ -527,7 +527,6 @@ input[type="checkbox"]:checked+label {
|
||||||
left: 0;
|
left: 0;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
top: 7em;
|
top: 7em;
|
||||||
padding-top: .2em;
|
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
-ms-scroll-chaining: none;
|
-ms-scroll-chaining: none;
|
||||||
overscroll-behavior-y: none;
|
overscroll-behavior-y: none;
|
||||||
|
@ -575,6 +574,7 @@ input[type="checkbox"]:checked+label {
|
||||||
#detree {
|
#detree {
|
||||||
padding: .3em .5em;
|
padding: .3em .5em;
|
||||||
font-size: 1.5em;
|
font-size: 1.5em;
|
||||||
|
line-height: 1.5em;
|
||||||
}
|
}
|
||||||
#tree ul,
|
#tree ul,
|
||||||
#tree li {
|
#tree li {
|
||||||
|
|
|
@ -147,7 +147,7 @@ var widget = (function () {
|
||||||
irc = this.getAttribute('id') == 'npirc',
|
irc = this.getAttribute('id') == 'npirc',
|
||||||
ck = irc ? '06' : '',
|
ck = irc ? '06' : '',
|
||||||
cv = irc ? '07' : '',
|
cv = irc ? '07' : '',
|
||||||
m = ck + 'np: ' + cv;
|
m = ck + 'np: ';
|
||||||
|
|
||||||
for (var a = 1, aa = th.length; a < aa; a++) {
|
for (var a = 1, aa = th.length; a < aa; a++) {
|
||||||
var tk = a == 1 ? '' : th[a].getAttribute('name').split('/').slice(-1)[0];
|
var tk = a == 1 ? '' : th[a].getAttribute('name').split('/').slice(-1)[0];
|
||||||
|
@ -158,7 +158,7 @@ var widget = (function () {
|
||||||
m += '[' + cv + s2ms(mp.au.currentTime) + ck + '/' + cv + s2ms(mp.au.duration) + ck + ']';
|
m += '[' + cv + s2ms(mp.au.currentTime) + ck + '/' + cv + s2ms(mp.au.duration) + ck + ']';
|
||||||
|
|
||||||
var o = document.createElement('input');
|
var o = document.createElement('input');
|
||||||
o.style.cssText = 'position:fixed;top:45%;left:48%;padding:1em';
|
o.style.cssText = 'position:fixed;top:45%;left:48%;padding:1em;z-index:9';
|
||||||
o.value = m;
|
o.value = m;
|
||||||
document.body.appendChild(o);
|
document.body.appendChild(o);
|
||||||
o.focus();
|
o.focus();
|
||||||
|
@ -1040,7 +1040,7 @@ var treectl = (function () {
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
var top = Math.max(0, parseInt(wrap.offsetTop)),
|
var top = Math.max(0, parseInt(wrap.offsetTop)),
|
||||||
treeh = (winh - atop) - 4;
|
treeh = winh - atop;
|
||||||
|
|
||||||
tree.style.top = top + 'px';
|
tree.style.top = top + 'px';
|
||||||
tree.style.height = treeh < 10 ? '' : treeh + 'px';
|
tree.style.height = treeh < 10 ? '' : treeh + 'px';
|
||||||
|
|
Loading…
Reference in a new issue