| Robert Ly | dc6720f | 2012-01-13 09:38:44 -0800 | [diff] [blame] | 1 | page.title=Runtime API Reference |
| Robert Ly | 864090e | 2012-06-17 18:22:17 -0700 | [diff] [blame] | 2 | parent.title=Computation |
| 3 | parent.link=index.html |
| 4 | |
| Robert Ly | dc6720f | 2012-01-13 09:38:44 -0800 | [diff] [blame] | 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> |