From b2c5027f56a16a0c606b01a071b816b941972aef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Hatcher?= Date: Sat, 15 Feb 2025 13:38:13 +0100 Subject: [PATCH] FIX: Shows borders correctly in case of frozen rows. Also draws the lines at the correct position --- .../src/components/WorksheetCanvas/worksheetCanvas.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/webapp/IronCalc/src/components/WorksheetCanvas/worksheetCanvas.ts b/webapp/IronCalc/src/components/WorksheetCanvas/worksheetCanvas.ts index 5f092cc..e276cca 100644 --- a/webapp/IronCalc/src/components/WorksheetCanvas/worksheetCanvas.ts +++ b/webapp/IronCalc/src/components/WorksheetCanvas/worksheetCanvas.ts @@ -1356,7 +1356,7 @@ export default class WorksheetCanvas { let y = headerRowHeight + 0.5; for (let row = 1; row <= frozenRows; row += 1) { const rowHeight = this.getRowHeight(selectedSheet, row); - x = headerColumnWidth; + x = headerColumnWidth + 0.5; for (let column = 1; column <= frozenColumns; column += 1) { const columnWidth = this.getColumnWidth(selectedSheet, column); this.renderCell(row, column, x, y, columnWidth, rowHeight); @@ -1365,7 +1365,7 @@ export default class WorksheetCanvas { y += rowHeight; } if (frozenRows === 0 && frozenColumns !== 0) { - x = headerColumnWidth; + x = headerColumnWidth + 0.5; for (let column = 1; column <= frozenColumns; column += 1) { x += this.getColumnWidth(selectedSheet, column); } @@ -1399,7 +1399,7 @@ export default class WorksheetCanvas { const frozenX = x; const frozenY = y; // Draw frozen rows (top-right pane) - y = headerRowHeight; + y = headerRowHeight + 0.5; for (let row = 1; row <= frozenRows; row += 1) { x = frozenX; const rowHeight = this.getRowHeight(selectedSheet, row);