Class for a pair of scrollbars. Horizontal and vertical.
Workspace to bind the scrollbars to.
OptionaladdHorizontal: booleanWhether to add a horizontal scrollbar. Defaults to true.
OptionaladdVertical: booleanWhether to add a vertical scrollbar. Defaults to true.
Optionalopt_class: stringA class to be applied to these scrollbars.
Optionalopt_margin: numberThe margin to apply to these scrollbars.
Returns whether scrolling horizontally is enabled.
True if horizontal scroll is enabled.
Returns whether scrolling vertically is enabled.
True if vertical scroll is enabled.
If any of the scrollbars are visible. Non-paired scrollbars may disappear when they aren't needed.
True if visible.
Recalculate both of the scrollbars' locations and lengths. Also reposition the corner rectangle.
Set the handles of both scrollbars.
The horizontal content displacement, relative to the view in pixels.
The vertical content displacement, relative to the view in pixels.
Whether to update metrics on this set call. Defaults to true.
Set whether this scrollbar's container is visible.
Whether the container is visible.
Record the origin of the workspace that the scrollbar is in, in pixels relative to the injection div origin. This is for times when the scrollbar is used in an object whose origin isn't the same as the main workspace (e.g. in a flyout.)
The x coordinate of the scrollbar's origin, in CSS pixels.
The y coordinate of the scrollbar's origin, in CSS pixels.
Set the handle of the horizontal scrollbar to be at a certain position in CSS pixels relative to its parents.
Horizontal scroll value.
Set the handle of the vertical scrollbar to be at a certain position in CSS pixels relative to its parents.
Vertical scroll value.
Fake class which should be extended to avoid inheriting static properties