get_popover_placement improved.