Skip to content

Commit 1246f4a

Browse files
committed
[IMP] computedTable{Style,Border}
1 parent dc41f62 commit 1246f4a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/o-spreadsheet-engine/src/plugins/ui_feature/table_computed_style.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ export class TableComputedStylePlugin extends UIPlugin {
7272
for (const colIdx of Object.keys(tableStyles)) {
7373
const colStyle = tableStyles[colIdx];
7474
const col = parseInt(colIdx);
75+
if (col < zone.left || col > zone.right) continue;
7576
for (const rowIdx of Object.keys(colStyle)) {
7677
const cellStyle = colStyle[rowIdx];
7778
if (cellStyle) {
@@ -98,6 +99,7 @@ export class TableComputedStylePlugin extends UIPlugin {
9899
for (const colIdx of Object.keys(tableBorders)) {
99100
const colStyle = tableBorders[colIdx];
100101
const col = parseInt(colIdx);
102+
if (col < zone.left || col > zone.right) continue;
101103
for (const rowIdx of Object.keys(colStyle)) {
102104
const cellBorder = colStyle[rowIdx];
103105
if (cellBorder) {

0 commit comments

Comments
 (0)