Under certain conditions, the Size Box in the user widget stops working.

I created a user widget that wraps a button in a size box. Execute a function in Pre-Construct to change the size during placement.

It usually works, but it stops working when placed in a Vertical Box or Horizontal Box. However, if you place a Size Box directly on these Boxes, space will be allocated according to the required size.

I don’t understand it at all. These methods essentially do the same thing, so why can’t this method be used? The purpose of a Size Box is supposed to be to reserve a specified space, so it’s nonsensical that it can’t do that.

Can someone tell me how to get Size Box to do its job? UMG is really confusing and frustrating because it keeps leaving exceptions and inconsistent behavior unaddressed.