UMG: Collapsed Buttons still take up Padding Space

I believe this is working as intended because the button is still there and so it will retain it’s padding settings.

I believe this is not working as intended since collapsed buttons in Vertical Box, Horizontal Box and Border do not retain their padding settings. Or is this a bug in those container widgets?

However, you could try removing the button via the “Remove from parent” node. This will cause everything to shift over, which achieve the desired effect.

The beautiful thing with collapsing a button is that it can be made visible again. If I remove a buton and re-add it, the padding is all screwed up. Simple code:

Please don’t suggest that I might be using the wrong “add child” node - both fail.

Outcome:

38018-wrong_outcome.png

“No problem”, I thought, I’ll just readjust the padding each time I re-add a button. Minor inconvenience, but UE4 requires me to use workarounds almost daily anyway.

Problem: To my knowledge you can’t set button padding from blueprint