Class gui.SingleScrollViewport
Defined in: SingleScrollViewport.js.
Constructor Attributes | Constructor Name and Description |
---|---|
gui.SingleScrollViewport(scrollPane)
Viewport controller for a single scroll pane capable of scrolling either
horizontally or vertically.
|
Method Attributes | Method Name and Description |
---|---|
<inner> |
height(clientRect)
|
scrollIntoView(clientRect, alignWithTop)
|
|
<inner> |
shrinkClientRectByMargin(clientRect, margin)
Pad the client rect with the supplied margin
|
<inner> |
width(clientRect)
|
Class Detail
gui.SingleScrollViewport(scrollPane)
Viewport controller for a single scroll pane capable of scrolling either
horizontally or vertically.
- Parameters:
- {!HTMLElement} scrollPane
Method Detail
<inner>
{!number}
height(clientRect)
- Parameters:
- {!core.SimpleClientRect} clientRect
- Returns:
- {!number}
{undefined}
scrollIntoView(clientRect, alignWithTop)
- Parameters:
- {?core.SimpleClientRect} clientRect
- {!boolean=} alignWithTop
- Returns:
- {undefined}
<inner>
{!core.SimpleClientRect}
shrinkClientRectByMargin(clientRect, margin)
Pad the client rect with the supplied margin
- Parameters:
- {!core.SimpleClientRect} clientRect
- {!core.SimpleClientRect} margin
- Returns:
- {!core.SimpleClientRect}
<inner>
{!number}
width(clientRect)
- Parameters:
- {!core.SimpleClientRect} clientRect
- Returns:
- {!number}