Class Index | File Index

Classes


Class gui.SingleScrollViewport


Defined in: SingleScrollViewport.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Viewport controller for a single scroll pane capable of scrolling either horizontally or vertically.
Method Summary
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}

Documentation generated by JsDoc Toolkit 2.4.0 on Thu Aug 06 2015 04:10:40 GMT+0200 (MESZ)