# Chosen
Chosen is a library for making long, unwieldy select boxes more user friendly.
- jQuery support: 1.4+
- Prototype support: 1.7+
...
那麼問題該怎麼解決呢?
解決思路:
通過修改 iframe 的高度(背景通過 iframe 相關樣式設定實作)
通過修改 Dialog 的高度(背景通過 Dialog 相關樣式設定實作)
最後,也就是通過修改Chosen插件包的相關樣式設定
調整chosen CSS相關設定(chosen.css)
/*!
Chosen, a Select Box Enhancer for jQuery and Prototype
by Patrick Filler for Harvest, http://getharvest.com
Version 1.6.2
Full source at https://github.com/harvesthq/chosen
Copyright (c) 2011-2016 Harvest http://getharvest.com
MIT License, https://github.com/harvesthq/chosen/blob/master/LICENSE.md
This file is generated by `grunt build`, do not edit it by hand.
*/
...
/* @end */
/* @group Results */
.chosen-container .chosen-results {
color:#444;
position: relative;
overflow-x: hidden;
overflow-y: auto;
margin:0 4px 4px 0;
padding:0 0 0 4px;
max-height:70px;
-webkit-overflow-scrolling: touch;
}