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
    1
    welshcathy is on a distinguished road

      0  

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