Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

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);

— asked May 21st 2010 by Brent Zacky
  • scrollview
  • webview
0 Comments

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?

    — answered May 21st 2010 by Daniel Lim
    permalink
    0 Comments
  • Thanks Daniel. Any idea how to do what you recommend. I've tried various ways but can't get it to work.

    — answered May 22nd 2010 by Brent Zacky
    permalink
    0 Comments
  • Thanks Daniel. Any idea how to do what you recommend. I've tried various ways but can't get it to work.

    — answered May 23rd 2010 by Brent Zacky
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.