1. 程式人生 > >Ext.ux.form.MultiSelect滾動條

Ext.ux.form.MultiSelect滾動條

在Ext.ux.form.MultiSelect的onRender方法中新增autoScroll:true。解決滾動條異常問題。 

  1. onRender: function(ct, position){  
  2.         Ext.ux.form.MultiSelect.superclass.onRender.call(this, ct, position);  
  3.         var fs = this.fs = new Ext.form.FieldSet({  
  4.             renderTo: this.el,  
  5.             title: this.legend,  
  6.             autoScroll:true,  
  7.             height: this.height,  
  8.             width: this.width,  
  9.             style: "padding:0;",  
  10.             tbar: this.tbar  
  11.         });