Mercurial > repos > saskia-hiltemann > ireport_dev
diff ireport_javascript.js @ 1:bda1cc8041bf draft
Markdown support added
author | saskia-hiltemann |
---|---|
date | Tue, 07 Oct 2014 08:47:45 -0400 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ireport_javascript.js Tue Oct 07 08:47:45 2014 -0400 @@ -0,0 +1,9 @@ + 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 + } + } \ No newline at end of file