Titanium webview
From John Freier
Revision as of 15: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…')
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;