d-oliveros/angular-sticky — pull request #20 by dmgts (2014-11-28 13:40:16+00:00)
Title: Changed behavior of the dynamic width

I see your point, but I'd make some adjustments yet:

I'll describe my logic and I hope it fits to most of cases:
At this stage we ignore all inline styles on the sticky block.

**Sticking:**
As you said before we set the width at the moment of sticking.

**Resizing:**
1. We handle a resize event only when our block is sticking.
2. Your previous code considered changing of the parent block while our block is sticking so I got it back. For instance in my project, while the block is sticking, orientation of the screen might change and as a consequence width of the parent block (because its width in percents). From my point of view it's most popular case but we can make this as a configurable option.

**Unsticking:**
All that we need is just to remove our inline width. If we set width which was before being sticky we will break the initial state of the block, because as I said we ignore any inline styles.