Skip to content

Commit

Permalink
Adding back resizing script
Browse files Browse the repository at this point in the history
  • Loading branch information
Zachary Klosko committed Dec 30, 2020
1 parent 4fa0d7a commit 4a059b9
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions airtime_mvc/application/views/scripts/index/index.phtml
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
<script language="JavaScript">
function autoResize(id){
var newheight;
var newwidth;

if(document.getElementById){
newheight=document.getElementById(id).contentWindow.document.body.scrollHeight;
// Hack to get height in Firefox
if (newheight == 0) newheight = newheight = document.getElementById(id).contentWindow.document.documentElement.scrollHeight;
newwidth=document.getElementById(id).contentWindow.document.body.scrollWidth;
}
document.getElementById(id).height= (newheight) + "px";
document.getElementById(id).width= (newwidth) + "px";
}
</script>

<div class="wrapper">

<div class="bck_cover"></div>
Expand Down

0 comments on commit 4a059b9

Please sign in to comment.