PDA

View Full Version : itemselector internet explorer problem



emredagli
21 Jun 2009, 11:52 PM
Hii,
(I am using ext-3.0-rc2)
I have trouble in itemselector in IE7.0,
I have following modifications on itemselector (onRender function) to fixed it. (As I understand panel add method brokes down before render (in IE7.0!!!), So: )


onRender: function(ct, position){
...
var icons = new Ext.Panel({
header:false,
border:false,
width:this.iconWidth,
style:'padding-left:'+this.iconPadding+'px;padding-right:'+this.iconPadding+'px;'
});

var p = new Ext.Panel({
bodyStyle:this.bodyStyle,
border:this.border,
layout:"table",
layoutConfig:{columns:3},
items:[
this.switchToFrom ? this.toMultiselect : this.fromMultiselect,
icons,
this.switchToFrom ? this.fromMultiselect : this.toMultiselect
]
});
//p.add(this.switchToFrom ? this.toMultiselect : this.fromMultiselect);
//p.add(icons);
//p.add(this.switchToFrom ? this.fromMultiselect : this.toMultiselect);
p.render(this.el);
...
}