A set of methods for setting and retrieving the editor's scrollbar.

Constructors

Creates a new ScrollBar. parent is the owner of the scroll bar.

Creates a new ScrollBar. parent is the owner of the scroll bar.

   

Arguments

parentDOMElementRequired. A DOM element

Events

    • ScrollBar.on("onScroll", function())

Emitted when the scroll bar, well, scrolls.

Emitted when the scroll bar, well, scrolls.

   

Methods

Returns the width of the scroll bar.

Returns the width of the scroll bar.

   

    • ScrollBar.setHeight(Number height)

Sets the height of the scroll bar, in pixels.

Sets the height of the scroll bar, in pixels.

   

Arguments

heightNumberRequired. The new height
    • ScrollBar.setInnerHeight(Number height)

Sets the inner height of the scroll bar, in pixels.

Sets the inner height of the scroll bar, in pixels.

   

Arguments

heightNumberRequired. The new inner height
    • ScrollBar.setScrollTop(Number scrollTop)

Sets the scroll top of the scroll bar.

Sets the scroll top of the scroll bar.

   

Arguments

scrollTopNumberRequired. The new scroll top