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

@@ -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,