I am trying to add custom widgets, as children to a vertical box, that resides within another widget. (Lets call the children: widget(s) C, and the vertical box: Vbox, for clarity)
Widget C has the following designer layout: Horizontal box << 2x scale box, 1x image <<(each scale box) 1x text.
I am adding widget C to Vbox, as a child, during run-time, when a template actor is clicked. If the same instance of the template actor is clicked multiple times, the existing child is updated rather than another being created.
Everything mentioned up to this point is working as expected, and as intended.
If a second instance of the template actor is clicked, another widget C is added as a child to Vbox, but on top of/overlapping the previous child. I expected this interaction to behave as follows: when the second widget C is added as a child to Vbox it is placed in the next slot of the Vbox, below the first widget C child.
I have checked this interaction through the designer, by manually adding multiple instances of the custom widget to the vertical box, and it works just as I expect: the second goes below the first.
Can anyone explain this?