Mercurial > repos > saskia-hiltemann > ireport_dev
view ireport_javascript.js @ 2:3c160414da2e default tip
initial upload
author | shiltemann |
---|---|
date | Thu, 26 Feb 2015 14:05:23 +0100 |
parents | |
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 } }