class
SAPO.Ink.Dockable
Version:
0.1
Inspects page scrolling and keeps element docked to the top of the page when about to get hidden (or at a specified height of it, fixedHeight). Restores regular behaviour with the opposite movement.
Since:
Defined in
Ink/Dockable/0.1/lib.js
October 2012
Constructor Summary
Constructor Details
constructor Dockable
Dockable(String|DOMElement
selector, Object
options)
Parameters:
selector
options
-
[ Number fixedHeight ]
height it occupies when fixed, in pixels. defaults to 0 -
[ Number throttlingDeltaT ]
time before reacting to resize/scroll events. in seconds. defaults to 0.2