FIX: Do geometry right
This commit is contained in:
committed by
Nicolás Hatcher Andrés
parent
0c69889832
commit
494a315cbd
@@ -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([]);
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user