tray_popover_resize

Function tray_popover_resize 

Source
pub fn tray_popover_resize(
    app: AppHandle<Wry>,
    width: f64,
    height: f64,
) -> Result<(), String>
Expand description

Fit the tray-popover WebView to content (title lines, meta, fonts). Called from tray-popover.js. Width/height are CSS / logical pixels (same units as getBoundingClientRect); PhysicalSize would undersize on HiDPI and clip the HUD.