I have a responsive problem on a web page. What happens is that I am adding a sandbox and therein a iframe
and I get cut, that is, it is not displayed completely.
This is the code:
<!DOCTYPE HTML>
<html lang="es">
<head>
<script src="https://cdnjs.cloudflare.com/ajax/libs/iframe-resizer/3.5.14/iframeResizer.contentWindow.min.js"></script>
</head>
<body style="margin: 0px;">
<p id="callback"></p>
<iframe src="https://www.strategis.mx/Glocator/" name="mainaccFrame" onload="window.parent.scrollTo(0,0);" id="mainaccFrame" frameborder="0" width="100%" height="100px" scrolling="no" sandbox="allow-modals allow-top-navigation allow-forms allow-same-origin allow-scripts allow-popups"></iframe>
<script src="https://code.jquery.com/jquery-1.12.4.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/iframe-resizer/3.5.14/iframeResizer.min.js"></script>
<script>
iFrameResize({
log: true, // Enable console logging
enablePublicMethods: true, // Enable methods within iframe hosted page
});
function resizeIframe(obj) {
console.log("datos funcion\n " + obj);
obj.style.height = obj.contentWindow.document.body.scrollHeight + 'px';
obj.style.width = obj.contentWindow.document.body.scrollWidth + 'px';
}
$(document).ready(function() {
jQuery(window).resize(function() {
var viewportheight;
$('#mainaccFrame').attr('height', viewportheight * .95 + "px");
});
});
</script>
</body>
</html>
And so it looks cut: