imakewebthings/jquery-waypoints — Issue #37: Doesn't account for changes in document height?
Author: ghuber
Created: 2012-01-09 17:08:28+00:00
State: open

Excellent plugin! It's amazing.

One thing -- I'm trying to use Waypoints to create 'sticky' headers for collapsable sections, like so:

HEADER 1
This content is inside a sliding container that can be toggled by clicking 'HEADER 1'.

HEADER 2
This content is current visible too!

Clicking either "HEADER" will collapse (or show) the content, like so:

HEADER 1

HEADER 2

The issue with Waypoints is that the Refresh function doesn't appear to recalculate/account for changes in document height (such as hiding or showing content). Thus, opening or closing sections messes up the calculation of when to trigger the waypoint.

Is there any workaround for this?

Thank you so much!