Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted January 1, 20223 yr I am doing some automated posts to a forum via the API and the body is going to be an iframe is there a way to have the height of the iframe adjust automatically to the source?
January 4, 20223 yr I have moved this to our developer forum, as this isnt really a support question here.
January 5, 20223 yr Solution On 1/1/2022 at 11:33 PM, Ocean West said: I am doing some automated posts to a forum via the API and the body is going to be an iframe is there a way to have the height of the iframe adjust automatically to the source? Not unless you somehow can provide the content height with the content. Basically what you do is add a hole in your site and place some content behind that hole. The size of the hole will be whatever you set on your site. Whatever happens on the other side of that hole is out of your control. If you want, you can try to use JavaScript to manipulate the iframe. My experience with it is not so great, but there are some solutions that might work for you. This might be a starting point:https://stackoverflow.com/questions/49253341/how-to-make-iframe-100-height-according-to-its-content