When I add overflow: auto on the parent element of the IFrame required by CSS resize: both, then iframe-resizer doesn't resize the IFrame but shows a scroll bar instead.
How should I solve this?
iFrameResize({
log: true,
});
div {
resize: both;
overflow: auto;
max-width: 100%;
min-width: 575px;
}
iframe {
width: 100%;
overflow: hidden;
}
<script src="https://cdnjs.cloudflare.com/ajax/libs/iframe-resizer/4.3.2/iframeResizer.min.js"></script>
<div>
<iframe src="http://davidjbradshaw.github.io/iframe-resizer/"></iframe>
</div>
Add height to iframe: