diff --git a/index.html b/index.html index 6461fdb..5ebfb31 100644 --- a/index.html +++ b/index.html @@ -6,7 +6,7 @@ Spreadsheet example - +
diff --git a/package.json b/package.json index 320916a..318e01c 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "modern_spreadsheet", "private": false, - "version": "0.0.25", + "version": "0.0.27", "exports": { ".": { "import": "./dist/main.js", diff --git a/src/components/columnsBar.ts b/src/components/columnsBar.ts index 1524107..d45424e 100644 --- a/src/components/columnsBar.ts +++ b/src/components/columnsBar.ts @@ -83,7 +83,7 @@ export class ColumnsBar { this.ctx.fillStyle = isColSelected ? this.root.styles.cells.selectedBackground : 'white' this.ctx.strokeStyle = 'black' this.ctx.lineWidth = this.resizerWidth - this.ctx.fillRect(x - this.root.viewport.left - 1, 1, width - 1, this.height - 1) + this.ctx.fillRect(x - this.root.viewport.left + 1, 1, width - 1, this.height - 1) this.ctx.strokeRect(x - this.root.viewport.left, 0, width, this.height) } diff --git a/src/components/rowsBar.ts b/src/components/rowsBar.ts index 11c5c46..362bc0f 100644 --- a/src/components/rowsBar.ts +++ b/src/components/rowsBar.ts @@ -70,7 +70,7 @@ export class RowsBar { this.ctx.strokeStyle = 'black' this.ctx.lineWidth = this.resizerHeight this.ctx.fillRect(0 + 1, y - this.root.viewport.top, this.width + 1, height) - this.ctx.strokeRect(0 + 1, y - this.root.viewport.top, this.width - 1, height) + this.ctx.strokeRect(0, y - this.root.viewport.top, this.width - 1, height) } private renderSingleRow(row: number) {