Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#7080 closed bug (worksforme)

Autocomplete should place dropdown above text field if there is no space below field

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

Description

We are using forms within a fixed layout that has an autocomplete field near the bottom of the page. Sometimes, the autocomplete drop down gets cut off at the bottom because there is no space for the drop down list.

The fix would be to intelligently place the dropdown below or above the text field depending on the amount of space available.

This would make the dropdown behavior consistent with virtually all native drop down implementations.

Change History (5)

comment:2 Changed 12 years ago by Scott González

Resolution: worksforme
Status: newclosed

Use the position option to enable flipping: http://jsfiddle.net/ttueW/2/

comment:3 Changed 12 years ago by Scott González

Component: ui.coreui.autocomplete

comment:4 Changed 12 years ago by dlee

Thanks! That works. The "position" option should be documented in http://docs.jquery.com/UI/Autocomplete#options.

comment:5 Changed 12 years ago by Scott González

Indeed: #6933

Note: See TracTickets for help on using tickets.