FIX: Slightly better widths in the row headers

I'm afraid this nees to be completely redone
This commit is contained in:
Nicolás Hatcher
2024-10-08 21:00:08 +02:00
committed by Nicolás Hatcher Andrés
parent b495397b5f
commit 1131234531

View File

@@ -674,15 +674,15 @@ export default class WorksheetCanvas {
const rowHeight = this.getRowHeight(selectedSheet, row); const rowHeight = this.getRowHeight(selectedSheet, row);
const selected = row >= rowStart && row <= rowEnd; const selected = row >= rowStart && row <= rowEnd;
context.fillStyle = headerBorderColor; context.fillStyle = headerBorderColor;
context.fillRect(0, topLeftCornerY, headerColumnWidth, rowHeight); context.fillRect(0.5, topLeftCornerY, headerColumnWidth, rowHeight);
context.fillStyle = selected context.fillStyle = selected
? headerSelectedBackground ? headerSelectedBackground
: headerBackground; : headerBackground;
context.fillRect( context.fillRect(
1, 0.5,
topLeftCornerY + 1, topLeftCornerY + 0.5,
headerColumnWidth - 2, headerColumnWidth,
rowHeight - 2, rowHeight - 1,
); );
if (selected) { if (selected) {
context.fillStyle = outlineColor; context.fillStyle = outlineColor;