pub fn position(state: &HoverState, viewport: HoverViewport) -> HoverRectExpand description
Compute the on-screen bounding rect for a popup.
Preferred position: one row below the anchor column.
If there is not enough vertical room below, flips above the anchor row.
Horizontally, shifts left if the popup would overflow the right edge.
The result is always clamped to stay fully inside viewport.