context.refresh()
Parameters
None.
Returns
undefined
.
This method forces a recalculation of the trigger point for every waypoint in this context. This method ends up being called automatically during a resize
event and when new waypoints are created. However, if you make changes to the DOM, CSS, or anything that may effect the layout and positioning of elements on the page, you need to call this method manually. In that situation calling refreshAll, which refreshes all contexts, is recommended, but if you know only one context needs to be refreshed you can opt to call this method instead.