Skip to content

Commit 2bfc78d

Browse files
committed
fix: add _disableColumnAndRowSizeRound support into getRowsHeight
1 parent ee47b62 commit 2bfc78d

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

packages/vtable/src/core/BaseTable.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1607,11 +1607,11 @@ export abstract class BaseTable extends EventTarget implements BaseTableAPI {
16071607
}
16081608
h = this.rowHeightsMap.getSumInRange(startRow, endRow);
16091609
}
1610-
// if (this.options._disableColumnAndRowSizeRound) {
1611-
// // console.log(startRow, endRow, Number(h.toFixed(2)));
1612-
// // return Number(h.toFixed(2));
1613-
// return h;
1614-
// }
1610+
if (this.options.customConfig?._disableColumnAndRowSizeRound) {
1611+
// console.log(startRow, endRow, Number(h.toFixed(2)));
1612+
// return Number(h.toFixed(2));
1613+
return h;
1614+
}
16151615
return Math.round(h);
16161616
}
16171617
/**

0 commit comments

Comments
 (0)