FIX: Avoid freezing the app on frozen columns or rows

This commit is contained in:
Nicolás Hatcher
2024-12-09 22:33:22 +01:00
parent 65f1738473
commit a4a3b11858

View File

@@ -867,14 +867,18 @@ export default class WorksheetCanvas {
frozenRows,
frozenColumns,
);
xFrozenEnd += this.getColumnWidth(
this.model.getSelectedSheet(),
frozenColumns,
);
yFrozenEnd += this.getRowHeight(
this.model.getSelectedSheet(),
frozenRows,
);
if (frozenColumns > 0) {
xFrozenEnd += this.getColumnWidth(
this.model.getSelectedSheet(),
frozenColumns,
);
}
if (frozenRows > 0) {
yFrozenEnd += this.getRowHeight(
this.model.getSelectedSheet(),
frozenRows,
);
}
if (startRow <= frozenRows && endRow > frozenRows) {
yEnd = Math.max(yEnd, yFrozenEnd);
}