HUD - hide one component and make the other one take the whole remaining space

Hello,

I have 2 scroll box in a vertical box

in the blueprint, I use “set visibility” to hide one scroll box and show the other one

but the visible scrollbox does not take the remaining of the vertical pace of the hidden component

it just stays there

how can I achieve this ?

thanks

Instead of Hiding it, Collapse it.

Alternatively, you could set its Fill Size to 0.

1 Like

already checked , there is no way to sett the fill using blueprint
I just try to emulate a tabs header, using buttons to show one component or another

there is also no way to collapse the component

You might also want to look at the WidgetSwitcher.
See here:

It works like “Tabs” but without tabs…

thanks it works

there is also no way to collapse the
component

Set Visibility → Collapsed

already checked , there is no way to
sett the fill using blueprint

Ofc there is. Get Slot → Set Fill: