Success! Looks like we've fixed this one. According to our records the fix was applied for TOUCH-2380 in a recent build.
  1. #1
    Sencha User
    Join Date
    Jan 2012
    Posts
    18
    Vote Rating
    0
    jochenp is on a distinguished road

      0  

    Default [RC2] TabPanel is hidding tabs

    [RC2] TabPanel is hidding tabs


    REQUIRED INFORMATION


    Ext version tested:
    • Sencha Touch RC 2


    Browser versions tested against:
    • Chrome
    • Safari 5.1.3


    DOCTYPE tested against:
    • html 5


    Description:
    • Using TabPanel results in hidden content


    Steps to reproduce the problem:
    • use TabPanel, add some tabs


    The result that was expected:
    • visible content on tab switch


    The result that occurs instead:
    • only tab bar is visible, content of panel has style : element.style {
      display: none !important;
      }


    Test Case:

    Code:
        example code attached, add touch directory

    Operating System:
    • Mac OS 10.7
    Attached Files

  2. #2
    Sencha User
    Join Date
    Jan 2012
    Posts
    18
    Vote Rating
    0
    jochenp is on a distinguished road

      0  

    Post


    The issue seems to be in wrapping of items in the tabbed panel :
    Code:
            items: [
                {
                    title: 'Favorites',
                    iconCls: 'favorites',
                    layout: 'fit',
                    items: [
                        {
                            xtype: 'favoritesPanel'
                        }
                    ]
                }, ...
            ]
    I've been looking into the examples and found that you need to set the xtype of the item and not wrap it:

    Code:
            items: [
                {
                    xtype: 'favoritesPanel'
                    title: 'Favorites',
                    iconCls: 'favorites',
                    layout: 'fit'
                }, ...
            ]

  3. #3
    Sencha User Jamie Avins's Avatar
    Join Date
    Mar 2007
    Location
    Redwood City, California
    Posts
    3,661
    Vote Rating
    20
    Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough

      0  

    Default


    I'll check into your example, thanks for the report.

    Sencha Inc

    Jamie Avins

    @jamieavins

  4. #4
    Sencha User
    Join Date
    Aug 2011
    Location
    London
    Posts
    16
    Vote Rating
    1
    trkaky is on a distinguished road

      0  

    Default


    I'm experiencing this issue in ST 2.0.1, same script with 2.0.0 runs ok tho.

Thread Participants: 2