Browse Source

Merge pull request #1054 from monkeyshuang/master

fixed:某些极限情况下合并单元格的列宽计算错误
master
mengshukeji 3 years ago
committed by GitHub
parent
commit
7eee44a040
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/global/getRowlen.js

2
src/global/getRowlen.js

@ -148,7 +148,7 @@ function computeRowlenByContent(d, r) {
function computeCellWidth(cell, col_index) {
let colLocationArr = colLocationByIndex(col_index);
if (cell.mc && cell.mc.c !== cell.mc.cs) {
if (cell.mc && 1 !== cell.mc.cs) {
colLocationArr = colSpanLocationByIndex(col_index, cell.mc.cs);
}

Loading…
Cancel
Save