Titanium webview

From John Freier
Revision as of 16:38, 9 January 2014 by Jfreier (Talk | contribs)

Jump to: navigation, search

Setting the height

IOS

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;