1. #1
    Ext JS Premium Member Lloyd K's Avatar
    Join Date
    Oct 2007
    Location
    Brighton, United Kingdom
    Posts
    655
    Vote Rating
    1
    Lloyd K is on a distinguished road

      0  

    Question [3.x] Ext.air and TabPanel

    [3.x] Ext.air and TabPanel


    Is there a known issue with Ext.air and TabPanel? I cannot for the life of me create a tabpanel in a viewport without it having an error thrown?

    This does not happen with the 2.3.0 release but def with the 3.x release available to download.
    - Lloyd K

    I blog about code from time to time: http://codeology.lloydkinsella.net/

  2. #2
    Sencha User makana's Avatar
    Join Date
    Apr 2008
    Location
    Dresden, Germany
    Posts
    527
    Vote Rating
    20
    makana has a spectacular aura about makana has a spectacular aura about

      0  

    Default


    I don't have any issues with TabPanels.

    Please give some more information! What error? How does your code look like? Do you have extensions or overrides on the TabPanel class?
    Programming today is a race between software engineers striving to build bigger and better іdiot-proof programs, and the universe striving to produce bigger and better idiots. So far, the universe is winning. (Rick Cook)

    Enhanced ExtJS adapter for Adobe AIR

  3. #3
    Ext JS Premium Member Lloyd K's Avatar
    Join Date
    Oct 2007
    Location
    Brighton, United Kingdom
    Posts
    655
    Vote Rating
    1
    Lloyd K is on a distinguished road

      0  

    Default


    It'd just a viewport with a tabpanel, no extensions or anything like thus:

    Code:
    this.tabPanel = new Ext.TabPanel({
        bodyStyle: "background-color: transparent;",
        activeTab: 0,
        items: [this.generalTab,this.authorTab,this.packageTab]
    });
    And all the panels exist etc. I also tried it using xtype's etc like I've done 1000 times and this works fine in 2.x but it won't work in the 3.1.1 release.
    - Lloyd K

    I blog about code from time to time: http://codeology.lloydkinsella.net/

  4. #4
    Ext JS Premium Member Lloyd K's Avatar
    Join Date
    Oct 2007
    Location
    Brighton, United Kingdom
    Posts
    655
    Vote Rating
    1
    Lloyd K is on a distinguished road

      0  

    Default


    A bit more info, the error is reported as:

    Code:
    TypeError: Value undefined does not allow function calls.
    
     at app:/lib/ext/ext-all-debug.js : 1482
    
     at app:/lib/ext/ext-all-debug.js : 9185
    
     at app:/lib/ext/ext-all-debug.js : 5486
    
     at app:/lib/ext/ext-all-debug.js : 43300
    
     at app:/lib/ext/ext-all-debug.js : 11810
    
     at app:/lib/ext/ext-all-debug.js : 43174
    
     at app:/lib/ext/ext-all-debug.js : 15382
    
     at app:/lib/ext/ext-all-debug.js : 19212
    
     at app:/lib/ext/ext-all-debug.js : 19199
    
     at app:/lib/ext/ext-all-debug.js : 19188
    
     at app:/lib/ext/ext-all-debug.js : 19438
    
     at app:/lib/ext/ext-all-debug.js : 19183
    
     at app:/lib/ext/ext-all-debug.js : 18892
    
     at app:/lib/ext/ext-all-debug.js : 18894
    
     at app:/lib/ext/ext-all-debug.js : 18894
    
     at app:/lib/ext/ext-all-debug.js : 18589
    
     at app:/lib/ext/ext-all-debug.js : 15423
    
     at app:/lib/ext/ext-all-debug.js : 14743
    
     at app:/lib/ext/adapter/ext/ext-base.js : 7
    
     at app:/lib/ext/adapter/ext/ext-base.js : 7
    
     at app:/lib/ext/adapter/ext/ext-base.js : 7
    
     at app:/lib/ext/adapter/ext/ext-base.js : 7
    
     at app:/scripts/application.js : 13
    
     at app:/index.html : 103
    
     at app:/lib/ext/ext-all-debug.js : 1881
    
    undefined at undefined : undefined
    This is using the 3.1.1 download and the 3.2.x checkout from SVN. This is the code I used:

    Code:
    			// Create tab panel
    			this.tabPanel = new Ext.TabPanel({
    				bodyStyle: "background-color: transparent;",
    				activeTab: 0,
    				//items: [this.generalTab,this.authorTab,this.packageTab]
    				items: [{
    					text: "Test"
    				}]
    			});
    If I remove items however, it stops freaking out.
    - Lloyd K

    I blog about code from time to time: http://codeology.lloydkinsella.net/

  5. #5
    Sencha User makana's Avatar
    Join Date
    Apr 2008
    Location
    Dresden, Germany
    Posts
    527
    Vote Rating
    20
    makana has a spectacular aura about makana has a spectacular aura about

      0  

    Default


    It's not with the TabPanel... its modified Ext.DomQuery code in ExtJS3.1.1.

    See this thread:
    http://www.extjs.com/forum/showthread.php?t=91756

    And try the adapter from this one!
    http://www.extjs.com/forum/showthread.php?t=91695
    Programming today is a race between software engineers striving to build bigger and better іdiot-proof programs, and the universe striving to produce bigger and better idiots. So far, the universe is winning. (Rick Cook)

    Enhanced ExtJS adapter for Adobe AIR

  6. #6
    Ext JS Premium Member Lloyd K's Avatar
    Join Date
    Oct 2007
    Location
    Brighton, United Kingdom
    Posts
    655
    Vote Rating
    1
    Lloyd K is on a distinguished road

      0  

    Default


    Ahh interesting I'll take a look thanks
    - Lloyd K

    I blog about code from time to time: http://codeology.lloydkinsella.net/

Thread Participants: 1