Commit 0e6b2ec0 authored by liujiaxin's avatar liujiaxin

www

parent ee6819bb
......@@ -254,7 +254,7 @@ export class PlayComponent extends BaseResizeComponent implements OnInit, AfterV
if (!this.data.contentObj.parts) {
return;
}
setTimeout(() => {
// setTimeout(() => {
let w = this.previewParts.nativeElement.offsetWidth / 2;
const b = document.querySelector('body');
......@@ -276,14 +276,12 @@ export class PlayComponent extends BaseResizeComponent implements OnInit, AfterV
return nitem;
}, 1);
// setTimeout(() => {
// this.autoSizeText();
// }, 10);
this.cw = this.previewContainer.nativeElement.offsetWidth;
this.ch = this.previewContainer.nativeElement.offsetHeight;
this.refresh();
});
});
// this.cw = this.previewContainer.nativeElement.offsetWidth;
// this.ch = this.previewContainer.nativeElement.offsetHeight;
// this.refresh();
// });
}
refresh() {
setTimeout(() => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment