Updating search width for single chosen (should expand entire width of container).
This commit is contained in:
parent
3d1a885257
commit
a9552631b5
|
@ -96,7 +96,7 @@ Chosen.prototype = {
|
||||||
if( !this.is_multiple ){
|
if( !this.is_multiple ){
|
||||||
this.search_container = this.container.down('div.chzn-search');
|
this.search_container = this.container.down('div.chzn-search');
|
||||||
this.selected_item = this.container.down('.chzn-single');
|
this.selected_item = this.container.down('.chzn-single');
|
||||||
var sf_width = (dd_width - get_side_border_padding(this.search_container) - get_side_border_padding(this.search_field));
|
var sf_width = (dd_width - get_side_border_padding(this.search_container));
|
||||||
this.search_field.setStyle( {"width" : sf_width + "px"} );
|
this.search_field.setStyle( {"width" : sf_width + "px"} );
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
|
|
Loading…
Reference in a new issue