ScrollPosition

ScrollPosition

  • offset_x : f32
  • offset_y : f32

Description

The scroll position of the node.

Updating the values of ScrollPosition will reposition the children of the node by the offset amount. ScrollPosition may be updated by the layout system when a layout change makes a previously valid ScrollPosition invalid. Changing this does nothing on a Node without setting at least one OverflowAxis to OverflowAxis::Scroll.

Functions