You need to sign in or sign up before continuing.
Commit afeac0c0 authored by liujiaxin's avatar liujiaxin

222

parent 1ae65122
......@@ -115,7 +115,7 @@ export class PlayComponent implements OnInit, OnDestroy, OnChanges, AfterViewIni
}
calcPicHeight() {
if (this.data.contentObj.text.trim()) {
if (this.data.contentObj.text && this.data.contentObj.text.trim()) {
const textHeight = this.domText.nativeElement.clientHeight;
const delta = _.isEmpty(this.data.contentObj.text) ? 0 : 40;
this.domPic.nativeElement.style.height = `calc(100% - ${textHeight + delta}px)`;
......@@ -150,6 +150,7 @@ export class PlayComponent implements OnInit, OnDestroy, OnChanges, AfterViewIni
refresh() {
setTimeout(() => {
this.appRef.tick();
this.calcPicHeight();
}, 1);
}
......
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