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.
  • Loading branch information...
1 parent 6625060 commit 4cc61b459d73af78dd40f01e3250f2546d9f04bd @scottgonzalez scottgonzalez committed Oct 25, 2011
Showing with 3 additions and 1 deletion.
  1. +3 −1 ui/jquery.ui.autocomplete.js
View
4 ui/jquery.ui.autocomplete.js
@@ -452,7 +452,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 4cc61b4

Please sign in to comment.