Hybrid View

  1. #1
    Ext User
    Join Date
    Jul 2010
    Posts
    9
    Vote Rating
    0
    oonox is on a distinguished road

      0  

    Default Sencha + Phonegap orientation problem

    Sencha + Phonegap orientation problem


    Hi,

    For sencha team thank you for this beautiful tools ! Sencha is the best way for webapp !

    So my problem. My web app work perfectily and whan i change the orientation, no problem.

    But when i embed my webapp via phone gap the orientation change keep the initial position.

    I found this solution then i use with a onOrientationChange of panel :

    http://stackoverflow.com/questions/2...scape-portrait

    but doesn't work ! any pist or way where i can find a solution ?

    Thx

    Fabien

  2. #2
    Ext User
    Join Date
    Jun 2010
    Posts
    2
    Vote Rating
    0
    CodeAmigo is on a distinguished road

      0  

    Default


    I am having the same problem. I am using the Kitchen Sink demo and PhoneGap. The orientation adjustment happens in the browser fine but when you run it on an iPad or the simulator with PhoneGap, the onOrientationChange function/listener does not seem to work, except on first load. Please help!

  3. #3
    Ext User
    Join Date
    Jul 2010
    Posts
    9
    Vote Rating
    0
    oonox is on a distinguished road

      0  

    Default


    so the phonegap don't send the onorientationchange event and use the orientationchanged event init by the phonegap.js.

    But phonegap.js gave error with sencha.

    i found this solution : http://groups.google.com/group/phone...438ccb9111c2ca

    if i have more information i post the solution here.

    see you.

    Fabien

  4. #4
    Sencha User arlo.carreon's Avatar
    Join Date
    Jul 2010
    Location
    Orlando, TX
    Posts
    34
    Vote Rating
    0
    arlo.carreon is on a distinguished road

      0  

    Default


    Hey Fabien,

    I have been following your threads since yesterday. I am also trying to launch an iPad app into the app store and my final step is getting the orientation to change on the ipad with Sencha and PhoneGap.

    So far, this is the only thing that has worked for me:

    Code:
    <script>
           document.addEventListener("orientationChanged", yourCallbackFunction, false);
    </script>
    I added that line to the index.html file and I created a function in my sencha file for the callback.

    Sencha app.js
    Code:
    function yourCallbackFunction()
    {
         //alert("PhoneGap has triggered the event!");
       
         // Now I need to have Sencha refresh the Panel?
    }
    So, basically now I am trying to get Sencha to "refresh" or stretch out on the screen like when it first starts. I have tried doLayout(), but that did not work.

    If you have some luck with this let me know.

Similar Threads

  1. Conflict wit sencha / phonegap & html5 database
    By erneso.laval in forum Sencha Touch 1.x: Discussion
    Replies: 4
    Last Post: 11 Jul 2011, 7:13 PM
  2. Preventing orientation changes?
    By SuperTron in forum Sencha Touch 1.x: Discussion
    Replies: 2
    Last Post: 19 Jul 2010, 11:20 AM
  3. sencha touch list store problem
    By reminder in forum Sencha Touch 1.x: Discussion
    Replies: 1
    Last Post: 27 Jun 2010, 11:33 AM
  4. Tab Orientation
    By garyrgi in forum Ext 1.x: Help & Discussion
    Replies: 2
    Last Post: 7 Nov 2006, 9:49 AM

Thread Participants: 19

Tags for this Thread

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar