feat(popover): support popping from bottom or top of screen

Closes #1986