Forum Academy Marketplace Showcase Pricing Features

Html stretch to fit content

Im building a tshirt sales app for a friend and im using the javascript snippet for SpreadShirt.
The shirt store works just fine using the html element except that when enough shirts fill the store the element just gets
cut off even though i have the stretch to fit content box checked. I have tried it alone and also in a group and still it wont stretch. anybody know how i can get it to stretch when new items are added to the shop? thanks!

1 Like

Can you share a link?

@emmanuel sure thing. I created a page in the test forum

that link doesnt seem to be working but its the app called html stretch

@emmanuel were you able to look at this and see if I was doing something wrong here?

The issue here is that the size of the elements inside the HTML element changes after the initialization, so our can’t adjust the height. Not sure we can find a good workaround there, can you preset the size in the embedded code (or make the HTML element bigger).