Skip to main content

scroll_node_into_view

Function scroll_node_into_view 

Source
pub fn scroll_node_into_view(
    node_id: DomNodeId,
    layout_results: &BTreeMap<DomId, DomLayoutResult>,
    scroll_manager: &mut ScrollManager,
    options: ScrollIntoViewOptions,
    now: Instant,
) -> Vec<ScrollAdjustment>
Expand description

Scroll a DOM node’s bounding rect into view

This is a convenience wrapper around scroll_rect_into_view that automatically gets the node’s bounding rect from layout results.