Commit a5287492 authored by Chen Jiping's avatar Chen Jiping

fix:修得显示问题

parent eb739375
......@@ -162,9 +162,9 @@ export class Exercises {
letterObj.isFill = letter.isFill;
wordObj.letterArr.push(letterObj);
let w = Math.ceil(label.getBoundingBox().width);
let w = Math.ceil(label.width);
tH = Math.ceil(label.getBoundingBox().height);
tH = Math.ceil(label.height);
let dw = 3;
......@@ -178,7 +178,7 @@ export class Exercises {
let underLine = new Line();
underLine.lineColor = "#858585";
underLine.lineWidth = 3;
underLine.y = label.y + label.getBoundingBox().height / 2;
underLine.y = label.y + label.height / 2;
underLine.x = startX;
underLine.setLine(w);
parent.addChild(underLine);
......
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