only consider bottom relocation for top located popovers

Without this check, left and right located popovers that are slightly too
wide are relocated to the bottom. Not what we intended.