diff options
author | Scott González <scott.gonzalez@gmail.com> | 2011-10-25 17:19:26 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2011-10-25 17:19:26 -0400 |
commit | 4cc61b459d73af78dd40f01e3250f2546d9f04bd (patch) | |
tree | 71a23c245bd05177ffde10386068d92e367814ca /ui | |
parent | 6625060d83056f73d58c636067a511e7e9bdb8f1 (diff) | |
download | jquery-ui-4cc61b459d73af78dd40f01e3250f2546d9f04bd.tar.gz jquery-ui-4cc61b459d73af78dd40f01e3250f2546d9f04bd.zip |
Autocomplete: Add 1px to the width of the menu to avoid wrapping in Firefox. Fixes #7513 - Autocomplete: long text wraps in Firefox.
Diffstat (limited to 'ui')
-rw-r--r-- | ui/jquery.ui.autocomplete.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ui/jquery.ui.autocomplete.js b/ui/jquery.ui.autocomplete.js index 5dda7d970..4e528dce4 100644 --- a/ui/jquery.ui.autocomplete.js +++ b/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() ) ); }, |