typescript代码
onLoad() {
if (!cc.sys.isNative && cc.sys.isMobile) {
var canvas = this.node.getComponent(cc.Canvas);
canvas.fitHeight = true;
cavnas.fitWidth = true;
}
}
canvas.fitHeight 和 canvas.fitWidth 会有红的波浪线,这个该怎样操作才不会出现红色波浪线?