PDA

View Full Version : [OPEN-EXTJSIV-447] Field style in tabpanel



wki01
29 Mar 2011, 3:00 AM
The field style is not maintained through the second tab.
I do not know if it's a real bug

thanks



Ext.require('Ext.tab.*');
Ext.onReady(function(){
// basic tabs 1, built from existing content
var tabs = Ext.createWidget('tabpanel', {
renderTo: 'tabs1',
width: 450,
activeTab: 0,
defaults :{
bodyPadding: 10
},
items: [{
title: 'TAB1',
items: [{
xtype: 'textfield', fieldLabel: 'TEST 1',id: "fld01"
}, {
xtype: 'textfield', fieldLabel: 'TEST 2',id: "fld02"
}]
},{
title: 'TAB2',
items: [{
xtype: 'textfield', fieldLabel: 'TEST 3',id: "fld03"
}, {
xtype: 'textfield', fieldLabel: 'TEST 4',id: "fld04"
}]
}]
});

Ext.getCmp("fld01").inputEl.setStyle({
"border": "none",
"background-color" : "#" + "f0f0f0",
"background-image" : "none"
})
Ext.getCmp("fld03").inputEl.setStyle({
"border": "none",
"background-color" : "#" + "f0f0f0",
"background-image" : "none"
});
});

Jamie Avins
29 Mar 2011, 8:26 AM
You could work around the issue (applying the style when the tab is activated), but I'll check into it being cleaner.

wki01
27 Apr 2011, 4:50 AM
It has been forgotten?

Thanks