Default Activity Indicator for webview shows on left of screen and is cut off
On the app I'm working on, whenever I load up a webview and the page is loading, the activity indicator can be seen on the left side of the screen, and is cut off in the middle (so half of it isn't visible).
It seems like the activity indicator is working (disappears when webview has loaded) but the location is just in the wrong spot…
can anyone help me out with the code needed to move it to a visible part of the screen?
Thanks ahead of time!!
3 Answers
-
Accepted Answer
I've seen this before, try setting the webview obj with width and height to '100%' instead. It worked for me.
-
The same question at stackoverflow suggests if you add the webview to a view with top/left/bottom/right then it will appear in the middle. That worked for me:
var view = Ti.UI.createView({top:0,left:0,bottom:0,right:0}); win.add(view); var web = Titanium.UI.createWebView({url:url}); view.add(web);
-
Hi,
I don't see these issues when using webviews. If you have some code and screenshots of what you're seeing, that would be useful for us to help you out ;)