Resize each instance of flex repeater

I'm building out a summary andon board for our managers using a flex repeater. I'm wondering if there is a way to dynamically size each instance on said flex repeater based on the quantity of stations within the instance (see screenshot below). I'd like each "card" to grow in height based on how many stations there on that card. This could even be function based... like card height = 450px + (quantity of stations) * 50px or anything along those lines.

I have tried overriding default view height, dynamically populating the "basis" field of each instance's instancePosition, playing around with the grow/shrink values all over the place, but nothing is working... I haven't even been able to get any variation in the repeated view sizes in any way. Is this possible? Or do I need to look into some weird nested flex container situation?

Disclaimer: I'm not a Perspective expert

I think you want basis: auto?

1 Like

I hadn't tried setting the basis to auto! I played around with that for a while but I couldn't get it to do anything unfortunately.

I did figure something out; if I want to resize things vertically like this, my only option is to switch the overarching flex repeater's direction from "row" to "column". From here I am using a script transform to determine the "basis" property of each instance based on how many line items appear on the card. I can also populate the "grow" and "shrink" parameters for each card dynamically if I choose, but for now, I have set these to very low values to fill up space a little more effectively. It isn't looking too bad... I hate the green "RUNNING" highlights, as I believe color coding should basically only be used for alarms, but that decision came from above my head...