Currently there is no way to choose the popup position. If the button is near the border of the screen the popup will be outside the screen.