PDA

View Full Version : buttons disapear in tabpanel



chinadust
28 Apr 2009, 12:20 AM
Hi,

I have this tabpanel. On the first panel I have put buttons in the nested panel.
At the first sight it looks fine, but when I switch to different panels and then switch back, the buttons disapear in IE, but not in firefox.

(the layout is a little complicated. I am afraid pasting the code here will make it even harder to read.)

I have no idea what is wrong with it. Hope anyone can figure it out?

Thank you in advance.

28 Apr 2009, 3:56 AM
do you have layoutOnTabChange : tru on your tab panel?

chinadust
28 Apr 2009, 4:09 PM
I turn it on. No, it is not that.

I put the following nested panel in another and then in the tabpanel.


items: ...
{
layout: 'column',
border: false,
items: [
{
width: 610,
layout: 'form',
labelAlign: 'right',
labelWidth: 80,
items: [
{
xtype: 'textarea',
fieldLabel: 'XXX',
name: 'YYJS',
id: 'tbYYJS',
height: 80,
width: 515,
allowBlank: false
}
]
}, {
height: 80,
width: 35,
layout: 'border',
border: false,
items: [
{
region: 'center',
border: false
},
{
height: 20,
region: 'south',
border: false,
id: 'btnYYJS',
items: [{
xtype: 'button',
text: '',
listeners: { click: function() { template_YYJS_win.show(); } }}]
}
]
}
]
}