armory3d/zui

[FR] Child to respect parent's size and rotation - Canvas

BlackGoku36 opened this issue · 3 comments

When parent element's height and width is change, child height and width remain the same.
Can be tested with canvas example or armory2d
When parent element's size and rotation is changed, children should adapt to these change

I don't think this is a bug, it's more like a missing feature. Maybe we should let the user decide what attributes each parent should influence, for example with checkboxes in Armory2D for location, rotation and scale (everything pre-selected?). What do you think?

I don't think this is a bug, it's more like a missing feature.

Yeah, you are right

Maybe we should let the user decide what attributes each parent should influence, for example with checkboxes in Armory2D for location, rotation and scale (everything pre-selected?). What do you think?

Cool!

Rotation seems to work now. Size is not inherited, but I think that could be handled directly in armory2d when scaling the element (since there is multiple possible ways on how that could behave).