Can maintainSpaceWhenHidden be used horizonally

Just noting that maintainSpaceWhenHidden property can be used usefully when components are vertically oriented (ie when the top component is hidden, lower components will shift up).

However I'm hoping to lay my components out horizontally, and when the left most component is hidden, other components shift to the left.

Is this possible?

Hey @BenCook, I'm not seeing the components shift to the left on my end, but I'm probably not replicating your app properly. Mind sending over an example app.json file so that I can take a look? Thanks!

Hey Joe,

Sorry for the confusion. I actually want the remaining components to shift to the left when a component is hidden (in the same way they shift up to fill empty space)

1 Like

Got it! I'll submit a feature request for this and update you here as there is any progress on that.

Great thanks Joe!

1 Like

Hello! @joeBumbaca do you know when this feature will be shipped ? I have a bunch of custom modules inside my container_network and I would like to hide them dynamically. right now my modules do not shift left horizontally. Is there a recommended workaround ?

@Nayan_Vaish I think the new stack component solves this issue. Have you tried it?

Thank you for the such a quick response @BenCook . It looks like we are on a old version of retool which doesn't have stacked components. :frowning:
I will try to followup internally about updating to the latest release, in the meantime is there any workaround I can use ? I am dynamically hiding modules which are in a container_network. Current retool version is 2.123.19

@Nayan_Vaish no work around that I know of - I highly recommend keeping up to date - always lots of good stuff coming out!

1 Like