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

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -