Home | History | Annotate | Download | only in renderscript
      1 page.title=Runtime API Reference
      2 parent.title=Computation
      3 parent.link=index.html
      4 
      5 @jd:body
      6 
      7 <script language="JavaScript">
      8 
      9 function autoResize(element){
     10     var newheight;
     11     var newwidth;
     12 
     13     newheight = element.contentWindow.document.body.scrollHeight + 20;
     14     newwidth = element.contentWindow.document.body.scrollWidth;
     15     element.height = (newheight) + "px";
     16     element.width = (newwidth) + "px";
     17 }
     18 </script>
     19 
     20 
     21 <iframe SRC="{@docRoot}reference/renderscript/index.html" width="100%"  id="iframe" marginheight="0" frameborder="0" onLoad="autoResize(this);"></iframe>
     22