Browse Source

重构window.onresize调用

develop
徐振升 4 years ago
parent
commit
638e5a948f
  1. 5
      src/app/working-area/working-area.component.ts

5
src/app/working-area/working-area.component.ts

@ -197,9 +197,8 @@ export class WorkingAreaComponent extends EventEmitter implements OnInit, AfterV
ngAfterViewInit(): void { ngAfterViewInit(): void {
this.createCanvas(); this.createCanvas();
let that = this window.onresize = () => {
window.onresize = function(){ this.resizeCanvas();
that.resizeCanvas()
}; };
} }
/** /**

Loading…
Cancel
Save