Mercurial > repos > saskia-hiltemann > ireport_devel
comparison ireport_javascript.js @ 0:3c160414da2e
initial upload
| author | shiltemann |
|---|---|
| date | Thu, 26 Feb 2015 14:05:23 +0100 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:3c160414da2e |
|---|---|
| 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 } |
