Skip to content

Commit

Permalink
Fixed issue with navigation to the next worksheet.
Browse files Browse the repository at this point in the history
  • Loading branch information
vladimir-litvinchik committed Sep 29, 2024
1 parent edc8694 commit 167ffa6
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,6 @@ export class ExcelDocumentComponent extends DocumentComponent implements OnInit,
}

ngAfterViewInit() {
this.navigateService.navigate.subscribe(((
value => {
if (value) {
this.selectSheet(value);
}
})));

const scrollbarWidth = this.getScrollBarWidth();
this.renderer.setStyle(this._elementRef.nativeElement.querySelector('.sheets'), 'right', this.getScrollBarWidth() + 'px');
this.renderer.setStyle(this._elementRef.nativeElement.querySelector('.sheets'), 'bottom', this.getScrollBarWidth() + 'px');
Expand All @@ -52,5 +45,6 @@ export class ExcelDocumentComponent extends DocumentComponent implements OnInit,

selectSheet(number){
this.currentPageNo = number;
this.navigateService.navigateTo(number);
}
}

0 comments on commit 167ffa6

Please sign in to comment.