mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Autocomplete: Add 1px to the width of the menu to avoid wrapping in Firefox. Fixes #7513 - Autocomplete: long text wraps in Firefox.
This commit is contained in:
parent
6625060d83
commit
4cc61b459d
4
ui/jquery.ui.autocomplete.js
vendored
4
ui/jquery.ui.autocomplete.js
vendored
@ -452,7 +452,9 @@ $.widget( "ui.autocomplete", {
|
|||||||
_resizeMenu: function() {
|
_resizeMenu: function() {
|
||||||
var ul = this.menu.element;
|
var ul = this.menu.element;
|
||||||
ul.outerWidth( Math.max(
|
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()
|
this.element.outerWidth()
|
||||||
) );
|
) );
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user