Friends, I shoveled half of the Internet, but I could not find a working solution. In general, in the iframe you need to load the site and take its height, tried the iFrame Resizer plug-in, the height did not change, the standard 150px, tried easyXDM — an error, tried this thing
function doIframe() { o = document.getElementsByTagName('iframe'); for (i = 0; i < o.length; i++) { if (/\bautoHeight\b/.test(o[i].className)) { setHeightIframe(o[i]); $(o[i]).load(function() { doIframe(); }); } } } function setHeightIframe(e) { if (e.contentDocument) { $(e).height(e.contentDocument.body.offsetHeight + 35); } else { $(e).height(e.contentWindow.document.body.scrollHeight); } }