Ticket #5153 (new enhancement)

Opened 5 weeks ago

Last modified 2 weeks ago

Autocomplete position option

Reported by: gwk Owned by:
Priority: minor Milestone: 1.8
Component: ui.autocomplete Version: 1.8rc1
Keywords: Cc:

Description

Attactched is patch to the autocomplete component which allows the user to specify custom positioning for the autocomplete menu. In our usecase the input field is in the top right of the page so creating the ui control as follows makes it work correctly.

$("input.ac").autocomplete({
    source: "/autocomplete.json",
    position: {
        my: "right top",
        at: "right bottom"
    }
});

Attachments

jquery-autocomplete-position-patch.diff (0.8 kB) - added by gwk 5 weeks ago.

Change History

Changed 5 weeks ago by gwk

Changed 5 weeks ago by scott.gonzalez

  • milestone changed from TBD to 1.8

We have to consider the implications of position-related options across all plugins. See #2525.

Changed 2 weeks ago by scott.gonzalez

See #5279 for a use case where the default positioning should be set to flip. This requires smart collision detection (#5284).

Note: See TracTickets for help on using tickets.