PDA

View Full Version : IE6: combo rendering problem



randomuser01
24 Sep 2008, 6:20 AM
Any ideas why the combo '_contract' won't render in IE6? Works fine in FF. I've tried removing and adding the anchor:-15 config.

Thanks



var contractSearchDS = new Ext.data.Store( {
proxy: new Ext.data.HttpProxy({
url: '/GetData.aspx?type=FindContract',method: 'GET'
}),
reader: new Ext.data.XmlReader ({
record: 'Contracts',
id: 'Contract'
}, [
{name:'Contract'}
])
});

var contractTmpl = new Ext.XTemplate(
'<div class="ux-search-body">',
'<tpl for="."><div class="ux-search-item">',
'{Contract}',
'</div></tpl></div>'
);

Ext.apply(this, {
layout:'border', frame:true,
items:[{
region:'west',width:300,title:'View RFQ Information',layout:'fit',
margins: '3 0 3 3', cmargins: '3 3 3 3',split:true,collapsible : false,
items:[{
xtype:'panel',layout:'form',frame:true ,labelWidth:70,
bodyStyle:"padding: 5px 5px 5px 5px",
defaults: {cls:'ux-text-background',anchor:'100%',xtype:'textfield'},
items:[{
xtype:'combo', name:'_contract', id:'_contract', fieldLabel: 'Contract', allowBlank:false,
store: contractSearchDS, displayField:'Contract', minChars:2, forceSelection:true,
typeAhead: false, loadingText: 'Searching...', hideTrigger:true,
tpl: contractTmpl, itemSelector: 'div.ux-search-item', anchor:'-15'
},{
xtype: 'combo', triggerAction:'all',fieldLabel:'Side',emptyText:'Specify bid or offer',
store: new Ext.data.SimpleStore ({
fields:['item'],
data: [ ['Foo'], ['bar'] ]
}),displayField:'item',valueField:'item',mode:'local',selectOnFocus: true,editable:true,allowBlank:false,forceSelection:true,
name: '_side',id: '_side'
},{

Condor
24 Sep 2008, 6:33 AM
It is a bug (http://www.extjs.com/forum/showthread.php?t=43231) (fix included).

randomuser01
24 Sep 2008, 6:45 AM
Thank you Condor.