FIX[WebApp]: Only show the active ranges in the correct sheet
Fixes #104
This commit is contained in:
committed by
Nicolás Hatcher Andrés
parent
7446932519
commit
f9ea4fd757
@@ -1286,9 +1286,13 @@ export default class WorksheetCanvas {
|
|||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
const selectedSheet = this.model.getSelectedSheet();
|
||||||
const activeRangesCount = activeRanges.length;
|
const activeRangesCount = activeRanges.length;
|
||||||
for (let rangeIndex = 0; rangeIndex < activeRangesCount; rangeIndex += 1) {
|
for (let rangeIndex = 0; rangeIndex < activeRangesCount; rangeIndex += 1) {
|
||||||
const range = activeRanges[rangeIndex];
|
const range = activeRanges[rangeIndex];
|
||||||
|
if (range.sheet !== selectedSheet) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
const allowedOffset = 1; // to make borders look nicer
|
const allowedOffset = 1; // to make borders look nicer
|
||||||
const minRow = topLeftCell.row - allowedOffset;
|
const minRow = topLeftCell.row - allowedOffset;
|
||||||
|
|||||||
Reference in New Issue
Block a user