pub fn auto_update(
reference: ElementOrVirtual<'_>,
floating: &Element,
update: Rc<dyn Fn()>,
options: AutoUpdateOptions,
) -> Box<dyn Fn()>Expand description
Automatically updates the position of the floating element when necessary. Should only be called when the floating element is mounted on the DOM or visible on the screen.