From 88ad2010d619096b9c790092a8a30f1a28909b13 Mon Sep 17 00:00:00 2001 From: rGaillard Date: Fri, 22 Nov 2013 16:41:25 +0100 Subject: [PATCH] // add padding and margin to automplete width #PSCFV-5876 --- js/jquery/plugins/autocomplete/jquery.autocomplete.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/jquery/plugins/autocomplete/jquery.autocomplete.js b/js/jquery/plugins/autocomplete/jquery.autocomplete.js index a8d6d6a3c..b0a40113a 100755 --- a/js/jquery/plugins/autocomplete/jquery.autocomplete.js +++ b/js/jquery/plugins/autocomplete/jquery.autocomplete.js @@ -699,7 +699,7 @@ $.Autocompleter.Select = function (options, input, select, config) { show: function() { var offset = $(input).offset(); element.css({ - width: typeof options.width == "string" || options.width > 0 ? options.width : $(input).width(), + width: typeof options.width == "string" || options.width > 0 ? options.width : ($(input).width() + parseInt($(input).css('padding-left')) + parseInt($(input).css('padding-right')) + parseInt($(input).css('margin-left')) + parseInt($(input).css('margin-right'))), top: offset.top + input.offsetHeight, left: offset.left }).show();