我有自定义下拉列表。如果父控件有溢出,它的下拉选项会被隐藏:滚动,如果删除滚动效果很好,但我想滚动。
plunr demo就在这里 http://plnkr.co/edit/GvWfJRCZj23NN0J6vTRV?p=preview
<table style="height:150px; display: block; overflow:scroll; border-style:solid;border-width:thin">
<thead>
<tr>
<td style="width:55px">Sr</td>
<td>Name</td>
</tr>
</thead>
<tbody ng-repeat="x in details" style="max-height:150px">
<tr>
<td>{{$index}}</td>
<td> <angucomplete-alt id="ex1" placeholder="Search countries(local-data)" pause="100"
selected-object="selected" local-data="countriestest" enable-Fast-Coding="enableFastCoding"
search-fields="name,code" title-field="name" minlength="0"
input-class="form-control form-control-small"></angucomplete-alt></td>
</tr>
</tbody>
</table>
请帮忙。