如何在qooxdoo中调整选择框子控件列表的高度
how to adjust the height of a selectbox child control list in qooxdoo
我有一个 select 盒子,里面有 9 件物品,我想调整高度以显示所有物品。默认情况下,第九个元素是隐藏的,用户需要向下滚动。
我有以下代码:
var selectbox = new qx.ui.form.SelectBox());
var list = selectbox.getChildControl( 'list' );
list.setHeight( 600 );
此代码对子控件列表没有影响
maxListHeight 属性 应该满足您的需要
http://www.qooxdoo.org/current/api/#qx.ui.form.AbstractSelectBox~maxListHeight
我有一个 select 盒子,里面有 9 件物品,我想调整高度以显示所有物品。默认情况下,第九个元素是隐藏的,用户需要向下滚动。
我有以下代码:
var selectbox = new qx.ui.form.SelectBox());
var list = selectbox.getChildControl( 'list' );
list.setHeight( 600 );
此代码对子控件列表没有影响
maxListHeight 属性 应该满足您的需要
http://www.qooxdoo.org/current/api/#qx.ui.form.AbstractSelectBox~maxListHeight