I’m not a great expert on widgets, but I think you have to do the anchoring in the master widget.
Because even if you’re not nesting them like this, you have the same problem just within one widget.
For instance place a button, anchor it, then surround it with a vertical box. The widget will take the anchor from the box, not the button…