I am working on setting padding/margin to my custom widgets.
Each Widget is a child of Container and it has background and childrenContainer as children, where background is Image and childrenContainer is a Container object.
I wanted to clip children according to the size of the parent so I set mask to both Widget and its childrenContainer and it seems like the mask to childrenContainer does not work.
When I masked the Widget itself, masking works fine so I think it is the problem of nested containers.
Without nesting containers I think it will be very hard to implement Widgets and Layouts.
Are there any better ideas on implementing these with masking?
+) Nested Groups
I am working on nested Groups and Group has another problem that it can’t handle events itself.
One way seems like setting HitArea to input but this way makes the event visible from outside of my Widget.
When I used Container, I could just call setInteractive() and handle its event inside same class and hide the event from outside.