Я хочу установить максимальную высоту для выпадающего списка CJuiAutoComplete в Yii
Вот мой код:
echo $form->label($model, 'name');
$this->widget('zii.widgets.jui.CJuiAutoComplete', array(
'name'=>'name',
'attribute'=>'name',
'model'=>$model,
'sourceUrl'=>Yii::app()->createUrl('mytask'),
// additional javascript options for the autocomplete plugin
'options'=>array(
'minLength'=>'2',
'showAnim'=>'fold',
'max-height'=>'100px',
),
'htmlOptions'=>array(
'style'=>'height:18px;width:400px;',
),
));
'max-height' => '100px' не работает, кто-нибудь знает, как его решить?
Заранее спасибо.
попробуйте добавить 'max-height'=>'100px'
, внутри htmlOptions,
'style'=>'height:18px;width:400px;max-height:100px;',