When a dropdown menu would render in a way that hides it offscreen, try a different alignment
Instead, keep the menu onscreen.
(This is happening because I'm adding dropdown menus to tab query panels.)
Reviewed By: amckinley
Maniphest Tasks: T13272
Differential Revision: https://secure.phabricator.com/D20383