Results 1 to 4 of 4

Thread: Orientation change in ChildBrowser doesn't repaint app

  1. #1
    Touch Premium Member
    Join Date
    Jun 2011
    Posts
    17
    Vote Rating
    0
      0  

    Default Orientation change in ChildBrowser doesn't repaint app

    I'm using PhoneGap's ChildBrowser plugin and Touch 1.x to open a .pdf on iPad without really leaving my app. When the user changes orientation and presses 'done', returning to the app, the app does not repaint itself.

    How do I convince the app to repaint itself with its new size? Can I just send a simulated 'orientationchange' event? Ext.repaint(); and Panel.doLayout(); have not worked.

  2. #2
    Sencha - Community Support Team mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,025
    Vote Rating
    1334
      0  

    Default

    Does the orientation events fire?
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

  3. #3
    Touch Premium Member
    Join Date
    Jun 2011
    Posts
    17
    Vote Rating
    0
      0  

    Default

    The orientation event does not fire. I solved the problem by setting
    Code:
    window.plugins.childBrowser.onClose = function() { 
    viewport.setSize(window.innerWidth, window.innerHeight); 
    };
    (this function is called when the user returns from the child browser).
    Last edited by dholth; 13 Dec 2011 at 8:34 AM. Reason: fromat

  4. #4
    Touch Premium Member
    Join Date
    Jun 2011
    Posts
    17
    Vote Rating
    0
      0  

    Default

    I may have spoke too soon. Sometimes this works, sometimes it doesn't.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •