       }
                result.push(array)
            }
            const col = cols[colId];
            let size = 0;
            if (col.expanded) {
                let childPos = pos
                for (let i = 0; i < col.children.length; i++) {
                    let child = col.children[i]
                    let childLeft = i === 0 && (col.children.length > 1 || leftBorder)
                    let childRight = i === col.children.length - 1 && (col.children.length > 1 || rightBorder)
              