Mercurial > repos > saskia-hiltemann > ireport_devel
view ireport_javascript.js @ 1:d582e2cd3e13 draft
Uploaded
| author | saskia-hiltemann |
|---|---|
| date | Wed, 15 Jul 2015 08:52:21 -0400 |
| parents | 3c160414da2e |
| children |
line wrap: on
line source
function resizeIframe(obj) { oldheight=obj.style.height oldwidth=obj.style.width obj.style.height = obj.contentWindow.document.body.scrollHeight + 4 + 'px'; obj.style.width = obj.contentWindow.document.body.scrollWidth + 4 + 'px'; if(obj.style.height < 50){ obj.style.height=oldheight } }
