Compute the popup position based on the selection rect.
Bounding rect for the current selection.
Popup position anchored to the selection.
Compute the popup position based on the selection rect.