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 flow on orientation change (iPad)

I have a webView which resize then an orientation change occurs.

On the iPhone simulator, the webView automatically reflows to fit the new width – great.

On the actual iPad, the content doesn't reflow and some of it gets cut off and requires scrolling when switching from landscape to portrait.

Any one seen this, or have any ideas to avoid?

— asked July 2nd 2010 by Greg Pierce
  • ipad
  • orientation
  • webview
0 Comments

3 Answers

  • I also need my webview to rescale when rotation occur.
    I tried repaint, (refresh doesn't work because I fill the webview with html property, not url) and also setting scalestofit to false then back to true, and resetting the html property with the same html again, with no success.
    Any idea?

    — answered June 12th 2011 by Umberto Gonnella
    permalink
    1 Comment
    • SORRY THIS IS NOT SOLVED! I meant to comment instead of aswering.

      — commented June 12th 2011 by Umberto Gonnella
  • I have the same problem. I've tried to .reload() and .repaint() in addition to resetting the html property with no luck. Any feedback would be great.

    — answered June 14th 2011 by Betty Tran
    permalink
    0 Comments
  • I am looking for a solution to this too. I cannot use reload() because why use the extra bandwidth especially on a cell network, plus my links are dead after 15 seconds for security reasons. What exactly does repaint() do? I see no difference with or without it. I was expecting it to redraw what has already been loaded, but that isn't the case

    — answered February 29th 2012 by Ronnie Swietek
    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.