Extjs Ext.ComboBox 自动调整现有内容 [英] Extjs Ext.ComboBox autosize over existing content

查看:20
本文介绍了Extjs Ext.ComboBox 自动调整现有内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在现有 html select 项上应用 Ext.ComboBox 时遇到问题,即使现有内容使 html 选择大约 20px(通过它的内容非静态宽度设置),Ext.ComboBox 将调整为一种默认的大宽度值.有没有一种方法可以根据现有项目自动调整 Ext.ComboBox 的大小而不使用默认宽度?

I have a problem when apply an Ext.ComboBox over an existing html select item, even if the existing content makes the html select about 20px (by it's content non static width is set), the Ext.ComboBox will resize to a sort of default, large, width value. There's a way to auto resize the Ext.ComboBox based on the existing items and no using the default width?

即使我知道Ext是哪个最好的工具,这个问题也会让我的同事放弃Extjs.

Even if I know which best tool Ext is, this issue will let my colleagues to discard Extjs.

提前致谢

推荐答案

从技术上讲,您无法制作组合自动宽度"——Ext 实际上将 在幕后, 元素必须指定宽度/大小.但是,您可以欺骗 Ext 根据现有的

发送“验证码”获取 | 15天全站免登陆