1. #41
    Sencha User
    Join Date
    Jan 2011
    Location
    banglore
    Posts
    12
    Vote Rating
    0
    vertex is on a distinguished road

      0  

    Red face orientation change

    orientation change


    try this:

    onOrientationChange:function(t,o,w,h){
    tempWidth = window.innerWidth;
    try{

    getPlaceHolder();
    }catch(e){}

    var cardReference=t.getActiveItem().id;
    if(cardReference=="yourcard"){
    if(Ext.is.Android){
    yourviewport.setHeight(window.innerWidth);
    }
    else{


    document.getElementById("yourcard").style.width = (window.innerWidth-175)+"px";
    document.getElementById("yourcard").style.width = (window.innerWidth-15)+"px";
    }

  2. #42
    Sencha User
    Join Date
    Aug 2010
    Location
    https://github.com/RandyMcMillan
    Posts
    27
    Vote Rating
    0
    RandyMcMillan is on a distinguished road

      0  

    Default


    ALot of the issues with orientation event in PhoneGap have been resolved but I wanted to post this link to sample code .

    https://github.com/RandyMcMillan/SenchaTouch

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