Skip to content

Commit 51a7e08

Browse files
committed
Fix the scroll issue on focus cell
Section size was wrong so when we scroll the sheet section seems out of visible area. In this patch we are using the actaul section size. Signed-off-by: Gülşah Köse <[email protected]> Change-Id: I58cdc19c79210ecc1e925c8efd0b3313b68823ef
1 parent b598a19 commit 51a7e08

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

browser/src/canvas/sections/FocusCellSection.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ class FocusCellSection extends CanvasSectionObject {
4040
}
4141

4242
public onCellAddressChanged(): void {
43-
this.size[0] = app.calc.cellCursorRectangle.pWidth;
44-
this.size[1] = app.calc.cellCursorRectangle.pHeight;
43+
this.size[0] = app.calc.cellCursorRectangle.pWidth * this.sectionProperties.maxRow;
44+
this.size[1] = app.calc.cellCursorRectangle.pHeight * this.sectionProperties.maxCol;
4545
this.setPosition(
4646
app.calc.cellCursorRectangle.pX1,
4747
app.calc.cellCursorRectangle.pY1,

0 commit comments

Comments
 (0)