Opened 11 years ago

Closed 11 years ago

#8208 closed bug (wontfix)

Autocomplete option text flows into next line when using a scrollbar

Reported by: hub Owned by:
Priority: minor Milestone: 1.9.0
Component: ui.autocomplete Version: 1.8.18
Keywords: Cc:
Blocked by: Blocking:

Description

When using a scrollbar and the option text / label is a little bit longer, then the text/label breaks into the next line. This behaviour does not resemble the behaviour of an ordinary select.

It is obviously due to the presence of the scrollbar: The scrollbar width seems not to be accounted for in the calculation of the width of the option menu.

Testcase: http://jsbin.com/awerop

Type "a".

Change History (1)

comment:1 Changed 11 years ago by Scott González

Resolution: wontfix
Status: newclosed

You can work around this by specifying a width for your menu. If you want to keep the shrink-wrapping behavior, you'll need to implement your own _resizeMenu() method that accounts for the scrollbar.

Note: See TracTickets for help on using tickets.