Merge lp:~intellectronica/lazr-js/choiceedit-position into lp:lazr-js
Proposed by
Eleanor Berger
Status: | Merged |
---|---|
Merged at revision: | not available |
Proposed branch: | lp:~intellectronica/lazr-js/choiceedit-position |
Merge into: | lp:lazr-js |
Diff against target: |
17 lines (+5/-1) 1 file modified
src-js/lazrjs/choiceedit/choiceedit.js (+5/-1) |
To merge this branch: | bzr merge lp:~intellectronica/lazr-js/choiceedit-position |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Michael Nelson (community) | code ui | Approve | |
Review via email: mp+19956@code.launchpad.net |
To post a comment you must log in.
This branch changes the positioning of the ChoiceEdit control so that the currently selected item is positioned directly under the mouse. This behaviour is more predictable, and we intended to implement it that way originally, but didn't do it because we were hoping that YUI will eventually provide a convenient way to do that. This never happened, and as part of my fix for bug #412925 I just went ahead and implemented it this way (with not much code anyway). The exception to the rule remains that if to position the box correctly will require drawing some of it outside of the viewable area, the position is corrected. I think that's an acceptable compromise, since drawing some of the items out of the screen will be a serious usability problem.