#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:1 Changed 12 years ago by
comment:2 Changed 12 years ago by
Resolution: | → worksforme |
---|---|
Status: | new → closed |
Use the position option to enable flipping: http://jsfiddle.net/ttueW/2/
comment:3 Changed 12 years ago by
Component: | ui.core → ui.autocomplete |
---|
comment:4 Changed 12 years ago by
Thanks! That works. The "position" option should be documented in http://docs.jquery.com/UI/Autocomplete#options.
Note: See
TracTickets for help on using
tickets.
An example: http://jsfiddle.net/ttueW/1/