FIX: Delete the selected area correctly
Previously it was deleting one extra row and column
This commit is contained in:
committed by
Nicolás Hatcher Andrés
parent
42c1a39131
commit
e412f5fc22
@@ -125,8 +125,8 @@ const Workbook = (props: { model: Model; workbookState: WorkbookState }) => {
|
||||
const row = Math.min(rowStart, rowEnd);
|
||||
const column = Math.min(columnStart, columnEnd);
|
||||
|
||||
const width = Math.abs(columnEnd - columnStart) + 1;
|
||||
const height = Math.abs(rowEnd - rowStart) + 1;
|
||||
const width = Math.abs(columnEnd - columnStart);
|
||||
const height = Math.abs(rowEnd - rowStart);
|
||||
model.rangeClearContents(
|
||||
sheet,
|
||||
row,
|
||||
|
||||
Reference in New Issue
Block a user