0

我已经在我的应用程序中实现了 angular-ui select2,它工作正常,但是选择框容器(在搜索上方)的呈现小于下拉面板。

这就是我的意思:

在此处输入图像描述 在此处输入图像描述

HMTL:

<select 
    ui-select2="{placeholder:'Select a User', dropdownAutoWidth: true}"
    class="animated slideInDown" 
    id="entityDropDown" 
    ng-model="selectedUser" 
    ng-options="user as user.name for user in users" 
    ng-change="getUserInfo(selectedUser)"> <option>Place Holder</option>
</select>
4

1 回答 1

2

添加到您的ctor参数width

<select
  ui-select2="{placeholder:'Select a User', dropdownAutoWidth: true, width: '100%'} >
</select>

应该管用。

于 2014-02-06T20:32:52.433 回答