PDA

View Full Version : combo - combobox renderring problem in accordion panel



emredagli
16 May 2009, 8:00 AM
Hii,
I am using combobox in a accordion panel (Ext3.0). But it is rendered as following:
http://www.emredagli.com/hata31.jpg
Related The code is:


{
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.

Animal
16 May 2009, 8:04 AM
Start expanded and then collapse it after the combo has been rendered

elishnevsky
16 May 2009, 8:43 AM
Start expanded and then collapse it after the combo has been rendered

Is it a bug in 3.0?

Animal
16 May 2009, 8:45 AM
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.

Animal
16 May 2009, 8:47 AM
Here it is: http://extjs.com/forum/showthread.php?t=62178

elishnevsky
16 May 2009, 8:49 AM
Here it is: http://extjs.com/forum/showthread.php?t=62178

Thanks!

emredagli
16 May 2009, 9:07 AM
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?