From a27966b8a73772e44e9fda6f5438a20d43480b15 Mon Sep 17 00:00:00 2001 From: Sulieman Dibirov Date: Mon, 2 May 2022 17:31:06 +0300 Subject: [PATCH] fix: computeRowlenByContent function, skip hidden columns --- src/global/getRowlen.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/global/getRowlen.js b/src/global/getRowlen.js index 56a3b8e..954ef9c 100644 --- a/src/global/getRowlen.js +++ b/src/global/getRowlen.js @@ -116,6 +116,10 @@ function computeRowlenByContent(d, r) { } } + if(Store.config["colhidden"] != null && Store.config["colhidden"][c] != null){ + continue; + } + if(cell != null && (cell.v != null || isInlineStringCell(cell)) ){ let cellWidth = computeCellWidth(cell, c);