use Rect;
/// Trait for popups whose default height depends on their content and state.
///
/// When `height: PopupSize::Auto`, the popup computes its actual height via
/// [`auto_height`](Self::auto_height). This is the single source of truth
/// that both the popup's `resolve_rect()` and `render()` use, guaranteeing
/// correct centering.