Mercurial > repos > saskia-hiltemann > ireport
view ireport_javascript.js @ 6:42076db43d42 draft
Fixed auto resizing plus various other minor bugs
author | saskia-hiltemann |
---|---|
date | Mon, 16 Nov 2015 08:56:22 -0500 |
parents | a4813532bbc6 |
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 } }