1. #1
    Sencha User emredagli's Avatar
    Join Date
    Jun 2008
    Posts
    300
    Vote Rating
    0
    emredagli is on a distinguished road

      0  

    Default combo - combobox renderring problem in accordion panel

    combo - combobox renderring problem in accordion panel


    Hii,
    I am using combobox in a accordion panel (Ext3.0). But it is rendered as following:

    Related The code is:
    Code:
    {
                    title: 'User Settings',
                    id: 'UserSettingsPanel',
                    hideMode:'display',
                    layout:'form',
                    defaultType:'checkbox',
                    labelWidth:40,
                    items:[{
                        xtype:'checkbox',
                        id:'bak',
                        fieldLabel:'selam',
                        boxLabel:'merhaba'
                    },{
                        xtype:'textfield',
                        id:'bak2',
                        fieldLabel:'selam',
                    },{
                        id: 'comboPixelPercentLeftColumnWidth', 
                        xtype: 'combo',
                        fieldLabel:'selam',
                        editable: false,
                        hideMode:'offsets',
                        store: storePixelPercent,
                        displayField: 'text',
                        typeAhead: true,
                        triggerAction: 'all',
                        mode: 'local',
                        valueField: 'value',
                        value: 0,
                        width: 70, //fieldWidthWithSpace - 55,
                        forceSelection: true,
                    }]
                }
    I try all hideMode options but It is not solved.

    Thanks.

  2. #2
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,496
    Vote Rating
    44
    Animal has a spectacular aura about Animal has a spectacular aura about Animal has a spectacular aura about

      0  

    Default


    Start expanded and then collapse it after the combo has been rendered

  3. #3
    Sencha User
    Join Date
    Jan 2008
    Location
    Toronto, Canada
    Posts
    480
    Vote Rating
    4
    elishnevsky is on a distinguished road

      0  

    Default


    Quote Originally Posted by Animal View Post
    Start expanded and then collapse it after the combo has been rendered
    Is it a bug in 3.0?

  4. #4
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,496
    Vote Rating
    44
    Animal has a spectacular aura about Animal has a spectacular aura about Animal has a spectacular aura about

      0  

    Default


    It's a long long standing problem with rendering in collapsed BoxComponents.

    Collapsing uses display:none, and rendering things in display:none Containers doesn't work.

    If you hunt around, you might be able to find Condor's suggested code which defers layouting until first expand/show.

  5. #5

  6. #6
    Sencha User
    Join Date
    Jan 2008
    Location
    Toronto, Canada
    Posts
    480
    Vote Rating
    4
    elishnevsky is on a distinguished road

      0  

    Default


    Quote Originally Posted by Animal View Post
    Thanks!

  7. #7
    Sencha User emredagli's Avatar
    Join Date
    Jun 2008
    Posts
    300
    Vote Rating
    0
    emredagli is on a distinguished road

      0  

    Default


    Thanks Mr. Animal,
    Problem is solved by using Condor's patch:
    http://extjs.com/forum/showthread.php?t=62178

    Actually,
    I wonder, Is there a list of these patches?

Thread Participants: 2