Commit 0e6b2ec0 authored by liujiaxin's avatar liujiaxin

www

parent ee6819bb
...@@ -254,7 +254,7 @@ export class PlayComponent extends BaseResizeComponent implements OnInit, AfterV ...@@ -254,7 +254,7 @@ export class PlayComponent extends BaseResizeComponent implements OnInit, AfterV
if (!this.data.contentObj.parts) { if (!this.data.contentObj.parts) {
return; return;
} }
setTimeout(() => { // setTimeout(() => {
let w = this.previewParts.nativeElement.offsetWidth / 2; let w = this.previewParts.nativeElement.offsetWidth / 2;
const b = document.querySelector('body'); const b = document.querySelector('body');
...@@ -276,14 +276,12 @@ export class PlayComponent extends BaseResizeComponent implements OnInit, AfterV ...@@ -276,14 +276,12 @@ export class PlayComponent extends BaseResizeComponent implements OnInit, AfterV
return nitem; return nitem;
}, 1); });
// setTimeout(() => {
// this.autoSizeText(); // this.cw = this.previewContainer.nativeElement.offsetWidth;
// }, 10); // this.ch = this.previewContainer.nativeElement.offsetHeight;
this.cw = this.previewContainer.nativeElement.offsetWidth; // this.refresh();
this.ch = this.previewContainer.nativeElement.offsetHeight; // });
this.refresh();
});
} }
refresh() { refresh() {
setTimeout(() => { 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