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.strokeStyle = "red";
|
||||||
ctx.lineWidth = 1;
|
ctx.lineWidth = 1;
|
||||||
ctx.strokeRect(xStart, yStart, xEnd - xStart, yEnd - yStart);
|
ctx.strokeRect(xStart, yStart, xEnd - xStart, yEnd - yStart);
|
||||||
// ctx.fillStyle = hexToRGBA10Percent(range.color);
|
|
||||||
// ctx.fillRect(xStart, yStart, xEnd - xStart, yEnd - yStart);
|
|
||||||
|
|
||||||
ctx.setLineDash([]);
|
ctx.setLineDash([]);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -84,8 +84,9 @@ function Worksheet(props: {
|
|||||||
!editor
|
!editor
|
||||||
)
|
)
|
||||||
return;
|
return;
|
||||||
|
// FIXME: This two need to be computed.
|
||||||
model.setWindowWidth(clientWidth - 37);
|
model.setWindowWidth(clientWidth - 37);
|
||||||
model.setWindowHeight(clientHeight - 149);
|
model.setWindowHeight(clientHeight - 190);
|
||||||
const canvas = new WorksheetCanvas({
|
const canvas = new WorksheetCanvas({
|
||||||
width: worksheetRef.clientWidth,
|
width: worksheetRef.clientWidth,
|
||||||
height: worksheetRef.clientHeight,
|
height: worksheetRef.clientHeight,
|
||||||
|
|||||||
Reference in New Issue
Block a user