Remove scrolling of html content in WebView in Titanium.

We are generally using WebView to display our html content to our apps. For iPhone app, if we add any html content to a webView it works fine as we expected, but for android the UI get distorted little bit. Horizontal and vertical scrollbar appears to that view. To fix that all those issue use the below code.

Sample Code :

//Define a webview

var myWebView = Ti.UI.createWebView({

   width      : 200,   //Describes the width

   height     : 200   //describes the height

});

//Made a html content

var htmlContent = “

Hello…!

”;

//Assign this html contentent to the webview

myWebView.html = htmlContent;

THAT’S IT

150 150 Burnignorance | Where Minds Meet And Sparks Fly!