method scrollToBox

bool scrollToBox(box box);

Argumente

Zurückgegebener Wert

This method sets the scroll position for this box so that it is at the location of the box specified by the caller. This will make the requested box visible within the box's viewable content area.
function ManualNav(boxId)
{
    var box = scene.getBoxById("container");
    var cbox = scene.getBoxById(boxId);
    if (box && cbox)
    {
        box.scrollToBox(cbox);
    }
}