Imported JavaScript Stretching When Resizing

Hey everyone,

We are using SpreadShirt and linking it through to out site using the following JavaScript code.

thehandsomenerd

The spreadshirt shop imports perfectly, but when we try to resize the iframe window the aspect ratio doesn’t change which results in the embedded site being very stretched out.

Does anyone have any suggestions for how to prevent this stretching? Perhaps something we could add to the code?

Hello handsomenerds !

i checked it and it seems to be working fine for me. check it again and if you still see the problem specify it more for me to understand exactly what it is.

Massa

Hey Massa,

Thanks for your reply. As you can see here https://www.thehandsomenerd.com/store-java-test , when we embedd the javascript from the original post into the iframe window and then resize it it stretches out quite badly.

This is different from when we just embedd it with the html link, where changing the html frame maintains the same aspect ratio and does not stretch at all.

Hi
this forum is specialized in WixCode problems. I would recommend you contact the support team : contact@wix.com. they know better :slight_smile:

Massa

Hello, in case you are still having problems, instead of putting the script into an iframe I used the ‘embed a site’ options in more. Just put the URL of your spreadshirt store and its sorted. eg - http://www.theyellowsnail.com/shop