[LayaAir 2.0]HTMLDivElement下划线换行时,下划线颜色错误

当html文本中的一段字有下划线,并且下划线发生换行时,下划线的颜色总是黑色,而不是和这段文字的颜色一致

bug提交.png

如上图,可以看到“创建的”三个字有下划线,并且下划线发生了换行。这时候下划线的颜色总是黑色。
 
看了下laya.html.js中的源码,当发生下划线换行时,会用到这一段代码,错误应该是这段代码造成。
__proto.createOneLine=function(startWord,lastWords,hasLine,graphic,recList){
var lineY=lastWords.y+lastWords.height;
if(hasLine)
graphic.drawLine(startWord.x,lineY,lastWords.x+lastWords.width,lineY,this.color,1);
var hitRec=HTMLHitRect.create();
hitRec.rec.setTo(startWord.x,lastWords.y,lastWords.x+lastWords.width-startWord.x,lastWords.height);
hitRec.href=this.href;
recList.push(hitRec);
}
graphic.drawLine()这里会用到this.color,应当是this.style.color吧?this在这里是HtmlElement,不存在color属性。
官方看看有空把这个改下吧。
已邀请:

Aar0n

赞同来自:

感谢反馈,确认后修复。

Aar0n

赞同来自:

感谢反馈,已经按照this.style.color修改, 您先临时用着,下一版就改了。

要回复问题请先

商务合作
商务合作