Skip to content

Commit

Permalink
Use reference to make import-csv code zooming cleaner.
Browse files Browse the repository at this point in the history
  • Loading branch information
highperformancecoder committed Oct 19, 2023
1 parent 5e85b1f commit 69fb1ce
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,10 @@ export class ImportCsvComponent extends Zoomable implements OnInit, AfterViewIni

zoom(ratio: number) {
this.zoomFactor *= ratio;
this.fullDialog.nativeElement.style.setProperty('zoom', `${Math.round(this.zoomFactor * 100)}%`);
this.fullDialog.nativeElement.style.setProperty('width', `${Math.round(100/this.zoomFactor)}vw`);
this.fullDialog.nativeElement.style.setProperty('height', `${Math.round(100/this.zoomFactor)}vh`);
let style=this.fullDialog.nativeElement.style;
style.setProperty('zoom', `${Math.round(this.zoomFactor * 100)}%`);
style.setProperty('width', `${Math.round(100/this.zoomFactor)}vw`);
style.setProperty('height', `${Math.round(100/this.zoomFactor)}vh`);
}

constructor(
Expand Down

0 comments on commit 69fb1ce

Please sign in to comment.