1. #1
    Sencha User
    Join Date
    Oct 2011
    Posts
    2
    Vote Rating
    0
    plug12 is on a distinguished road

      0  

    Question Sencha + PhoneGap Orientation again

    Sencha + PhoneGap Orientation again


    Hi.
    I tried everything, but nothing worked for me.

    I want to get the orientation change for the Idiomatic Layout Tutorial(http://www.sencha.com/learn/idiomati...h-sencha-touch), but the setProfile methods are not called.
    Code:
    Ext.setup({
    onReady: function() {
    panel = new Ext.Panel({
    fullscreen: true,
    layout: 'card',
    items:[{xtype:'panel',contentEl:'portrait-container',scroll:'vertical'},
    {xtype:'panel',contentEl:'landscape-container',scroll:'false'}]
    });   
    Ext.EventManager.onWindowResize(setActivePanel);}});
    
    function setActivePanel(){  
    panel.setOrientation( Ext.getOrientation() , window.innerWidth , window.innerHeight ); 
    };
    Somtimes the function works, but i cant call my setProfile methods with this.


    Is there any working solution or could anybody help me with this (PhoneGap 1.4.1 with Sencha Touch 1.1.1)?

  2. #2
    Sencha User
    Join Date
    Oct 2011
    Posts
    2
    Vote Rating
    0
    plug12 is on a distinguished road

      0  

    Default


    Ext.EventManager.onWindowResize(setActivePanel);only fires once, when I have code in setActivePanel(){}...thats the problem

  3. #3
    Sencha Premium Member
    Join Date
    Jan 2011
    Location
    London, UK
    Posts
    50
    Vote Rating
    2
    welshcathy is on a distinguished road

      0  

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi