FIX: Do geometry right

This commit is contained in:
Nicolás Hatcher
2024-10-27 11:06:51 +01:00
committed by Nicolás Hatcher Andrés
parent 0c69889832
commit 494a315cbd
2 changed files with 2 additions and 3 deletions

View File

@@ -1262,8 +1262,6 @@ export default class WorksheetCanvas {
ctx.strokeStyle = "red";
ctx.lineWidth = 1;
ctx.strokeRect(xStart, yStart, xEnd - xStart, yEnd - yStart);
// ctx.fillStyle = hexToRGBA10Percent(range.color);
// ctx.fillRect(xStart, yStart, xEnd - xStart, yEnd - yStart);
ctx.setLineDash([]);
}

View File

@@ -84,8 +84,9 @@ function Worksheet(props: {
!editor
)
return;
// FIXME: This two need to be computed.
model.setWindowWidth(clientWidth - 37);
model.setWindowHeight(clientHeight - 149);
model.setWindowHeight(clientHeight - 190);
const canvas = new WorksheetCanvas({
width: worksheetRef.clientWidth,
height: worksheetRef.clientHeight,