getBoundingBoxToWorld出现bug!!!!

let box=cc.find(“Canvas/box”);
let box_rect=box.getBoundingBoxToWorld();
let line=new cc.Node();
line.parent=cc.director.getScene();
line.addComponent(cc.Graphics);
let ctx=line.getComponent(cc.Graphics);
ctx.lineWidth=3;
ctx.strokeColor=cc.Color.BLUE;
ctx.rect(box_rect.x,box_rect.y,box_rect.width,box_rect.height);
ctx.stroke();


画出来的boundingbox 在节点有widget对齐时会出现严重偏差
环境:creator 2.0.7 浏览器和模拟器都有这个问题

1赞