popover: Allocate after setting final_position
When we find out that we've been flipped, set final_position and final_rect before allocating the popover. This prevents 'smashed-in beak' disease.
Fixes: #2671 (closed)
When we find out that we've been flipped, set final_position and final_rect before allocating the popover. This prevents 'smashed-in beak' disease.
Fixes: #2671 (closed)