Hi all,
I have the following case:
VERSION 1
// var r:Rectangle = UIComponent(rectangle).getBounds(bigCanvas));
// var p:Point = UIComponent(bigCanvas).localToContent(r.topLeft);
VERSION 2
var p:Point = UIComponent(rectangle.parent).contentToGlobal(new Point(figure.x, figure.y));
p = UIComponent(bigCanvas).globalToContent§;
just for info: bigCanvas is the canvas where the rectangle is draw.
Do you have any idea, why, though the 2 codes are equivalent, the result is not the same? (for VERSION 1 the border of the menu is drawn 2px and semi-transparent)
)
Thanks,
Stephanie