Label returns wrong bounds in parent when used in the following snippet:
var g = Group{};
var l = Label { translateX: 10 translateY: 40 text: "Hellog" };
insert l into g.content;
var b = l.boundsInParent;
var r = Rectangle {x: b.minX y: b.minY width:b.width height:b.height opacity:0.5 };
insert r into g.content;
g;
The rectangle appears to be above the label. When using object literals approach:
Group {
content: [
l = Label { ... }
Rectangle { x: bind .... }
]
}
Everything seems to work ok. Still the original approach needs to behave consistently with the object literal approach.
var g = Group{};
var l = Label { translateX: 10 translateY: 40 text: "Hellog" };
insert l into g.content;
var b = l.boundsInParent;
var r = Rectangle {x: b.minX y: b.minY width:b.width height:b.height opacity:0.5 };
insert r into g.content;
g;
The rectangle appears to be above the label. When using object literals approach:
Group {
content: [
l = Label { ... }
Rectangle { x: bind .... }
]
}
Everything seems to work ok. Still the original approach needs to behave consistently with the object literal approach.