qc.ScrollView.setNormalizedPosition

Prototype

  • void setNormalizedPosition(number value, int axis)

Parameters

Parameter Type Description
value number The scroll position
axis int 0: horiontal; 1: vertical

Description

Set the scroll position.

Sample

    node.setNormalizedPosition(0.5, 0);

    node.setNormalizedPosition(0.6, 1);