fix(canvas): restore selected row cell borders

This commit is contained in:
t8y2 2026-06-18 13:49:48 +08:00
parent 17f186db26
commit 59c0929c9f
1 changed files with 6 additions and 0 deletions

View File

@ -366,6 +366,12 @@ export function drawCanvasDataGrid(options: DrawCanvasDataGridOptions) {
ctx.fillRect(clippedX, y, cellPaintWidth, CANVAS_DATA_GRID_ROW_HEIGHT);
}
ctx.strokeStyle = theme.border;
ctx.beginPath();
ctx.moveTo(clippedX, rowBorderY);
ctx.lineTo(Math.min(width, clippedX + cellPaintWidth), rowBorderY);
ctx.stroke();
ctx.save();
ctx.beginPath();
ctx.rect(clippedX, y, Math.min(cellPaintWidth, width - clippedX), CANVAS_DATA_GRID_ROW_HEIGHT);