I have a tabbed module which by default, shows 6 products. However, when another tab is clicked, it shows 4 products. I.e.
Tab Compare all products shows six items.
Tab Business only shows four items (because there's only four business products).
Based on this, I'm trying to set the width of the container based on how many items are in its container. I have the PHP for it, but stuggling to convert it into HubL: