More options for popup window locations

More options for popup window locations

I got a request to create a popup that opens directly above the button that was clicked to open it:
but currently the only options avaliable center the popup over an item.  I'd like the ability to choose other locations, such as 'above' 'below' 'right' 'left'
Thanks!