Mercurial > repos > saskia-hiltemann > ireport
annotate ireport_javascript.js @ 8:86219e4aa239 draft
Uploaded
author | saskia-hiltemann |
---|---|
date | Mon, 28 Aug 2017 10:23:21 -0400 |
parents | a4813532bbc6 |
children |
rev | line source |
---|---|
4 | 1 function resizeIframe(obj) { |
2 oldheight=obj.style.height | |
3 oldwidth=obj.style.width | |
4 obj.style.height = obj.contentWindow.document.body.scrollHeight + 4 + 'px'; | |
5 obj.style.width = obj.contentWindow.document.body.scrollWidth + 4 + 'px'; | |
6 if(obj.style.height < 50){ | |
7 obj.style.height=oldheight | |
8 } | |
9 } |