Friday, 3 February 2012

Itemselector Height in ExtJs4

It seems like in ExtJS4.0.2a, we can not modify the height directly. ( height:) will not work. As height has been initialized to 200 by default..

To Assign your own height you have to override the onRender method of ItemSelector.js

commonConfig = {
displayField: me.displayField,
valueField: me.valueField,
dragGroup: ddGroup,
dropGroup: ddGroup,
flex: 1,
hideLabel: true,
height : (this.height || 200)