Fix tail positioning for horizontally positioned popup