Commit f77dff79 authored by Chen Jiping's avatar Chen Jiping

fix:修复浏览器放大或者缩小导致换行异常的问题

parent a7a2b357
......@@ -1229,6 +1229,7 @@ export class RichText extends Label {
this._width = mW;
//this.refreshAnchorOff();
this.ctx.restore();
}
......
......@@ -734,7 +734,7 @@ export class PlayComponent implements OnInit, OnDestroy {
text.fontName = "GOTHICB";
text.textArr = getTextArr(i + 1, sentence);
text.disH = 20;
text.maxWidth = bg.width;
text.maxWidth = 680;
text.setScaleXY(this.mapScale);
text.refreshSize();
text.y = y + text.getBoundingBox().height / 2;
......@@ -915,8 +915,6 @@ export class PlayComponent implements OnInit, OnDestroy {
indexItem.sentence = sentence;
}
this.playAudio(sentence.audioUrl, true);
let spr;
let index = -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