Namespace: Placeholder

Placeholder

Author:
  • Ahmet Katrancı <ahmet@katranci.co.uk>
Source:

Methods

<static> create(sticky) → {Placeholder}

Creates an instance of Placeholder
Parameters:
Name Type Description
sticky PositionSticky
Source:
Returns:
Type
Placeholder

<private> _createElement()

Creates the placeholder that will be used in place of the element when the element is positioned absolutely or fixed
Source:
To Do:
  • Float computation doesn't work on Firefox and IE9

<private> _init(sticky) → {Placeholder}

Constructor method
Parameters:
Name Type Description
sticky PositionSticky
Source:
Returns:
Type
Placeholder

refresh()

Re-sets element's height from sticky's boundingBoxHeight. It is called from PositionSticky#refresh.
Source: