dynamic height of the iframe
-
I have PDFs with a different amount of pages and therefore with a different height. I don’t want the user to scroll inside the frame but to set the iframe dynamically to the height of the content. Fetching the contentheight with contentWindow.document.body.scrollHeight didn’t work. I think I have to get the height of the div with the id=”viewer” and give it to the parent page. Is there a possibility to add code to the iframed page?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘dynamic height of the iframe’ is closed to new replies.