mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-23 17:06:16 -04:00
reverse reps are a brain truck
This commit is contained in:
parent
e48f2d0190
commit
81e4c14fc0
2 changed files with 39 additions and 26 deletions
|
@ -426,12 +426,13 @@ Scroll.prototype.getCountOfVisibleCharsInViewport = (line, viewport) => {
|
|||
const parentElement = document.getElementById(line.domInfo.node.id).childNodes;
|
||||
const charNumber = [];
|
||||
// top.console.log(parentElement);
|
||||
for (let node of parentElement) {
|
||||
for (const node of parentElement) {
|
||||
// each span..
|
||||
// top.console.log('span', node); // shows all nodes from the collection
|
||||
// top.console.log('span length', node.offsetTop); // shows all nodes from the collection
|
||||
|
||||
// each character
|
||||
/*
|
||||
let i = 0;
|
||||
console.log(node);
|
||||
if (!node || !node.childNodes) return;
|
||||
|
@ -477,6 +478,7 @@ Scroll.prototype.getCountOfVisibleCharsInViewport = (line, viewport) => {
|
|||
i++;
|
||||
}
|
||||
top.console.log('charNumber', charNumber);
|
||||
*/
|
||||
return; // TEMPJM CAKE remove once stable
|
||||
}
|
||||
return 1000;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue