class SAPO.Ink.Dockable
Authors:
jose.p.dias AT co.sapo.pt
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:
October 2012
Defined in Ink/Dockable/0.1/lib.js

Constructor Summary
Dockable (String|DOMElement selector, Object options)

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