annotate ireport_javascript.js @ 2:3c160414da2e default tip

initial upload
author shiltemann
date Thu, 26 Feb 2015 14:05:23 +0100
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2
3c160414da2e initial upload
shiltemann
parents:
diff changeset
1 function resizeIframe(obj) {
3c160414da2e initial upload
shiltemann
parents:
diff changeset
2 oldheight=obj.style.height
3c160414da2e initial upload
shiltemann
parents:
diff changeset
3 oldwidth=obj.style.width
3c160414da2e initial upload
shiltemann
parents:
diff changeset
4 obj.style.height = obj.contentWindow.document.body.scrollHeight + 4 + 'px';
3c160414da2e initial upload
shiltemann
parents:
diff changeset
5 obj.style.width = obj.contentWindow.document.body.scrollWidth + 4 + 'px';
3c160414da2e initial upload
shiltemann
parents:
diff changeset
6 if(obj.style.height < 50){
3c160414da2e initial upload
shiltemann
parents:
diff changeset
7 obj.style.height=oldheight
3c160414da2e initial upload
shiltemann
parents:
diff changeset
8 }
3c160414da2e initial upload
shiltemann
parents:
diff changeset
9 }