Difference between revisions of "Titanium webview"

From John Freier
Jump to: navigation, search
(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…')
(No difference)

Revision as of 15:38, 9 January 2014

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;