I'm using https://github.com/davidjbradshaw/iframe-resizer and I want to disable iFrame height auto-resize.
I added autoResize:false, but it doesn't work: when I resize window width, iFrame height changes.
This is my code:
<iframe id="myIFrame" frameborder="0" height="940" scrolling="no" width="100%"
src="http://example.com"></iframe>
<script type="text/javascript" src="js/iframeResizer.js"></script>
<script>iFrameResize({log:true, autoResize: false},'#myIFrame');</script>
What am I doing wrong?
Thanks
That looks like a bug, try setting resizeFrom to 'child' and see if that fixes it. If it does raise a bug on GitHub.