Skip to main content

blockly > ScrollbarPair > setX

ScrollbarPair.setX() method

Set the handle of the horizontal scrollbar to be at a certain position in CSS pixels relative to its parents.

Signature:

setX(x: number): void;

Parameters

Parameter

Type

Description

x

number

Horizontal scroll value.

Returns:

void