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 {
this.createCanvas();
let that = this
window.onresize = function(){
that.resizeCanvas()
window.onresize = () => {
this.resizeCanvas();
};
}
/**

Loading…
Cancel
Save