extjs3 - Extjs - How to adjust position of siblings when an item inside a Compositefield grows/resized -
i have composite field 2 textfield items. first textfield's grow property set true. when first textfield's width autoresize, overlaps field right. succeeding items adjust/move it's position right preceeding field grows. e.g
new ext.form.compositefield({ autoheight: true , autowidth: true , items:[{ xtype:'textfield' , flex: 1 , growmax: 125 , growmin: 80 , width: 80 , grow: true , listeners: { 'autosize': function () { // should here?? tried accessing // ownerct syncsize() didn't work } }} , { xtype:'textfield' , flex: 1 , width: 80 }] });
thank in advance.
this seem bug of extjs. however, 've found workaround:
'autosize': function () { if (this.width == this.el.dom.offsetwidth) return; this.width = this.el.dom.offsetwidth; this.ownerct.dolayout(); }
here fiddle
Comments
Post a Comment