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

parentDOMElement

Required. A DOM element

Events

    • ScrollBar.on("scroll", function(Object e))

Emitted when the scroll bar, well, scrolls.

Emitted when the scroll bar, well, scrolls.

Arguments

eObject

Required. Contains one property, "data", which indicates the current scroll top position

Methods

Returns the width of the scroll bar.

Returns the width of the scroll bar.

    • ScrollBar.onScroll()
    • Undocumented
    • ScrollBar.setHeight(Number height)

Sets the height of the scroll bar, in pixels.

Sets the height of the scroll bar, in pixels.

Arguments

heightNumber

Required. 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

heightNumber

Required. 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

scrollTopNumber

Required. The new scroll top