在Ext.ux.form.MultiSelect的onRender方法中添加autoScroll:true。解决滚动条异常问题。
- onRender: function(ct, position){
- Ext.ux.form.MultiSelect.superclass.onRender.call(this, ct, position);
- var fs = this.fs = new Ext.form.FieldSet({
- renderTo: this.el,
- title: this.legend,
- autoScroll:true,
- height: this.height,
- width: this.width,
- style: "padding:0;",
- tbar: this.tbar
- });
本文介绍如何在Ext.ux.form.MultiSelect组件的onRender方法中通过设置autoScroll属性为true来解决滚动条异常的问题。此方法能够确保在使用FieldSet包装MultiSelect时,即使内容超出容器高度也能正常显示滚动条。
1万+

被折叠的 条评论
为什么被折叠?



