Permalink
Browse files

Autocomplete: Add 1px to the width of the menu to avoid wrapping in F…

…irefox. Fixes #7513 - Autocomplete: long text wraps in Firefox.

(cherry picked from commit 4cc61b4)
  • Loading branch information...
1 parent 39e75ad commit 757384b8c5eb1ccf354f9ab98fcb3b0e6cae6e1d @scottgonzalez scottgonzalez committed Oct 25, 2011
Showing with 3 additions and 1 deletion.
  1. +3 −1 ui/jquery.ui.autocomplete.js
@@ -383,7 +383,9 @@ $.widget( "ui.autocomplete", {
_resizeMenu: function() {
var ul = this.menu.element;
ul.outerWidth( Math.max(
- ul.width( "" ).outerWidth(),
+ // Firefox wraps long text (possibly a rounding bug)
+ // so we add 1px to avoid the wrapping (#7513)
+ ul.width( "" ).outerWidth() + 1,
this.element.outerWidth()
) );
},

0 comments on commit 757384b

Please sign in to comment.