A fixed-size, vertically scrollable container. Add children to content; call
refreshContent() after (re)filling it. Scrolls by mouse wheel and by dragging the slim
scrollbar thumb. Clipping uses scrollRect (GPU clip — scrolling never repaints children).
Constructor
new(width:Float, height:Float)
Parameters:
width | layout width (the scrollbar lives inside it) |
|---|---|
height | the visible viewport height |
Variables
Methods
refreshContent(?explicitHeight:Float):Void
Re-measures the content height and clamps the scroll position. Call after (re)filling
content.
Parameters:
explicitHeight | overrides the measured |
|---|
setScroll(value:Float):Void
Scrolls to an absolute offset.
Parameters:
value | the target offset in pixels (clamped to 0.. |
|---|