garand/sticky — pull request #22 by ericnicolaas (2012-09-24 05:36:40+00:00)
Title: Add getWidthFrom option to support responsive layouts

I found that integrating Sticky in a responsive layout can present problems when trying to set the width of the sticky element. To get around this, I have added in a simple option to allow one to set an element from which the sticky element should get its width.

Example usage:

```javascript
$('#primary_nav').sticky({
topSpacing: 0,
getWidthFrom: '#container'
});
```