Hi,
trying to implement container that would size it self to its children. is it possible in feather ui ?
my current attempt:
final layout = new LayoutGroup();
layout.variant = MY_VARIANT;
layout.addChild(MY_CONTENT);
function MY_VARIANT_STYLE(group: LayoutGroup) {
group.backgroundSkin = new Scale9Bitmap(texture, new Rectangle(8, 31, 186, 178), true);
}
if I do it like this layout group is as big as the image what is added as background skin.
I trued to play with width / height / layouts data but could not find a way to make bg stretch to content.
probably missing something simple 🙂
Thank You