Skip to main content

compute_default_position

Function compute_default_position 

Source
fn compute_default_position(
    app: &AppHandle,
    window: &WebviewWindow,
) -> Option<BubblePosition>
Expand description

First-launch default: bottom-right of the primary monitor with a 16 px inset. Returns None only when the OS reports zero monitors — defensive; in practice available_monitors() always yields ≥1 when a webview is up.