Skip to content

Scrollbox

NickWare edited this page Dec 27, 2021 · 1 revision

The Scrollbox container HTML model:

<div class="Box Scrolling" data-scrollboxname="SB1">
    <div class="Scrolldata">
        Body
    </div>
</div>

JS:

// Update scrollbar when you changing the Scrollbox body
facefull.Scrollboxes["SB1"].doUpdateScrollbar();

// Scrolling control
facefull.Scrollboxes["SB1"].doScrollToEnd();

facefull.Scrollboxes["SB1"].setScrollPosition(pos);
Clone this wiki locally