garand/sticky — pull request #51 by benmj (2013-05-15 17:00:48+00:00)
Title: Floated elements become "unstuck" in certain window size changes

### Observed Behavior

Sticky elements that are floated-right can become "unstuck" when the window is resized.

### Issue

In certain circumstances (I noticed when opening/closing the Chrome Dev Tools), the width of the sticky-wrapper would be set to '0'. The sticky element, would then appear to the side of the expected position (since it was the `wrapper` that was floated, while the sticky element was fixed).

### Solution

Set the width of the `wrapper` element to that of the child in the `scroller` function

s.stickyElement.parent().addClass(s.className).width(s.stickyElement.outerWidth());