Skip to content

Commit 66732e5

Browse files
author
hikki
committed
v3.2
1 parent ed28aa9 commit 66732e5

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

resources/assets/component.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@ window.ComponentCascadeDot = class {
541541
}
542542
}
543543
});
544-
if (to_first_index !== null) this.STACKS[stack].scrollTop = to_first_index * 27;
544+
if (to_first_index !== null) this.STACKS[stack].scrollTo(0,to_first_index * 27);
545545
if (nodes.length > 0) {
546546
this.selectToParent(nodes, checked);
547547
}
@@ -573,7 +573,7 @@ window.ComponentCascadeDot = class {
573573
this.expand(data, D, false);
574574
}
575575
});
576-
if (to_first_index !== null) this.STACKS[stack].scrollTop = to_first_index * 27;
576+
if (to_first_index !== null) this.STACKS[stack].scrollTo(0,to_first_index * 27);
577577
this.selectToChildren(stack + 1, children);
578578
}
579579

@@ -703,7 +703,7 @@ window.ComponentCascadeDot = class {
703703
if (to_first_index === null) to_first_index = index;
704704
}
705705
});
706-
if (to_first_index !== null) this.STACKS[stack].scrollTop = to_first_index * 27;
706+
if (to_first_index !== null) this.STACKS[stack].scrollTo(0,to_first_index * 27);
707707
this.checkAll(stack + 1, children, check);
708708
}
709709
};
@@ -1204,7 +1204,7 @@ window.ComponentCascadeLine = class {
12041204
let lastKey = len - 1;
12051205
let currentStackDocuments = object.STACKS[0];
12061206
currentStackDocuments.append(object.insertLabelDom(object.dimensional_data[0][lastKey], lastKey, 0));
1207-
object.STACKS[0].scrollTop = lastKey * 27;
1207+
object.STACKS[0].scrollTo(0,lastKey * 27);
12081208
currentStackDocuments.lastChild.click();
12091209
object.PLANE_DOM.remove();
12101210
});
@@ -1325,7 +1325,7 @@ window.ComponentCascadeLine = class {
13251325
}
13261326
}
13271327
});
1328-
if (to_first_index !== null) this.STACKS[stack].scrollTop = to_first_index * 27;
1328+
if (to_first_index !== null) this.STACKS[stack].scrollTo(0,to_first_index * 27);
13291329
if (nodes.length > 0) {
13301330
this.selectToParent(nodes);
13311331
}
@@ -1357,7 +1357,7 @@ window.ComponentCascadeLine = class {
13571357
this.expand(data, D, false);
13581358
}
13591359
});
1360-
if (to_first_index !== null) this.STACKS[stack].scrollTop = to_first_index * 27;
1360+
if (to_first_index !== null) this.STACKS[stack].scrollTo(0,to_first_index * 27);
13611361
this.selectToChildren(stack + 1, children);
13621362
}
13631363

@@ -1457,7 +1457,7 @@ window.ComponentCascadeLine = class {
14571457
object.STACKS[nextStack].append(
14581458
object.insertLabelDom(object.dimensional_data[nextStack][index], index, nextStack));
14591459
dom.insertAdjacentHTML('afterbegin', `<i class="left">${_component.caret_right_circle}</i>`);
1460-
object.STACKS[nextStack].scrollTop = index * 27;
1460+
object.STACKS[nextStack].scrollTo(0,index * 27);
14611461
} else {
14621462
let lastKey = data.nodes[data.nodes.length - 1];
14631463
let currentStackDocuments = object.STACKS[nextStack].childNodes;
@@ -1483,7 +1483,7 @@ window.ComponentCascadeLine = class {
14831483
object.dimensional_data[nextStack].forEach((d, index) => {
14841484
if (index > newIndex) currentStackDocuments[index].setAttribute('data-k', index);
14851485
});
1486-
object.STACKS[nextStack].scrollTop = newIndex * 27;
1486+
object.STACKS[nextStack].scrollTo(0,newIndex * 27);
14871487
}
14881488
if (!Array.isArray(data.nodes)) data.nodes = [];
14891489
data.nodes.push(key);
@@ -1684,7 +1684,7 @@ window.ComponentCascadeLine = class {
16841684
let DOM = this.STACKS[pick.stack].childNodes[pick.index];
16851685
if (!(DOM instanceof HTMLElement)) return;
16861686
DOM.classList.add('dlp-label-active');
1687-
this.STACKS[pick.stack].scrollTop = pick.index * 27;
1687+
this.STACKS[pick.stack].scrollTo(0, pick.index * 27);
16881688
DOM.click();
16891689
}
16901690

0 commit comments

Comments
 (0)