Webview won't display in scrollable view
I've tried adding multiple webviews to a scrollable view. The first webview displays perfectly but when i scroll to the second and third webviews they show up blank - until i scroll up or down, then the text appears. Any suggestions on how to fix? Thanks.
Here is sample code:
var webView1 = Ti.UI.createWebView();
webView1.url='test.html';
var webView4 = Ti.UI.createWebView();
webView4.url='test2.html';
var webView5 = Ti.UI.createWebView();
webView5.url='test3.html';
var scrollView = Titanium.UI.createScrollableView({
views:[webView1,webView4,webView5],
});
win.add(scrollView);
3 Answers
-
Accepted Answer
I experienced the same problem on both 1.2 and 1.3, about half of the dynamic scrollable webviews exhibited this issue, appending on window or modal. Also, the scroll indicator is wrong too. The only solution i could come up with is adding scroll listener to reload the page.
Anyone knows how to "trigger" a drag or pull down event on a webview?
-
Thanks Daniel. Any idea how to do what you recommend. I've tried various ways but can't get it to work.
-
Thanks Daniel. Any idea how to do what you recommend. I've tried various ways but can't get it to work.