diff --git a/magicsuggest.js b/magicsuggest.js index d12537b..7d205d4 100644 --- a/magicsuggest.js +++ b/magicsuggest.js @@ -1106,6 +1106,9 @@ ms.input.width(0); inputOffset = ms.input.offset().left - ms.selectionContainer.offset().left; w = ms.container.width() - inputOffset - 42; + if(w < 0) { + w = ms.container.width(); + } ms.input.width(w); }