stop a webview scrolling to the right?
Is it possible to use a webview and stop it from allowing scroll to the right into white space.
I have a fixed with on the webview, on the HTML inside it, but it still scolls.
I want the webview to scroll vertically so i tried to use touchEnabled:false but this means no vertical scroll.
So, i put it in a scrollableview, but the touchEnabled prevents scrolling on that.
Any ideas?
Platform - Titanium 1.7.1 and Android 2.2
2 Answers
-
Accepted Answer
What you can do is put your webview within a view that spans the entire height of the html page. You can then kill the scroll on your webview so that it doesn't scroll around inside your view, and you will get vertical scroll from your native view extending below the bottom border of your screen.
-
Does anyone of you tried to use some Webkit supported meta tags…? e.g.
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">