Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#6648 closed bug (fixed)

Autocomplete menu position issue when positioned to the right

Reported by: anonymous Owned by:
Priority: minor Milestone: 1.8.7
Component: ui.autocomplete Version: 1.8.6
Keywords: Cc:
Blocked by: Blocking:


$("input#test").width(100).autocomplete({ position: { my: "right top", at: "right bottom" }, source: ["This is a very long option", "This was a very long option"] });

While typing "this i" the menu position isn't being repositioned to the right. I guess this is because the menu is positioned using css "left", and when the width changes the absolute "right" changes which causes a "jump" is the menu position.

Change History (3)

comment:1 Changed 6 years ago by scottgonzalez

  • Component changed from unfiled to ui.autocomplete
  • Milestone changed from 1.5 to 1.9
  • Priority changed from undecided to minor

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

  • Resolution set to fixed
  • Status changed from new to closed

Autocomplete: Re-position menu after resizing, not before. Fixes #6648 - Autocomplete menu position issue when positioned to the right.

Changeset: f85b998f44e68860c633e467fe6427e52f91282c

comment:3 Changed 6 years ago by scottgonzalez

  • Milestone changed from 1.9 to 1.8.7

Please use jsFiddle or jsbin to provide test cases instead of pasting large blocks of code in the ticket.

If you have a fix, fork the repository on GitHub and send a pull request. Make sure to check out the guide for writing code for jQuery projects.

Modify Ticket

Change Properties

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.