Titanium webview

From John Freier
Revision as of 16:38, 9 January 2014 by Jfreier (Talk | contribs) (Created page with ' == Setting the height == For IOS setting the height of a WebView can be tough. A good trick is to get the height of the HTML document and setting the WebView height. var ac…')

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Setting the height

For IOS setting the height of a WebView can be tough. A good trick is to get the height of the HTML document and setting the WebView height.

 var actualHeight = e.source.evalJS("document.body.offsetHeight");
 e.source.height = actualHeight;