mirror of
https://github.com/t8y2/dbx.git
synced 2026-10-22 08:47:26 +00:00
fix(canvas): restore selected row cell borders
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user