Include search field border / padding when calculating desired width.

This commit is contained in:
Patrick Filler 2011-06-28 18:15:59 -04:00
parent c8b92c1769
commit d9196c71c4

View file

@ -96,7 +96,7 @@ Chosen.prototype = {
if( !this.is_multiple ){
this.search_container = this.container.down('div.chzn-search');
this.selected_item = this.container.down('.chzn-single');
var sf_width = (dd_width - get_side_border_padding(this.search_container));
var sf_width = (dd_width - get_side_border_padding(this.search_container) - get_side_border_padding(this.search_field));
this.search_field.setStyle( {"width" : sf_width + "px"} );
}
else{