garand / sticky

jQuery Plugin for Sticky Objects
Other
3.3k stars 1.06k forks source link

Changed from using .width() to .outerWidth() on one part of the width ch... #146

Closed firdoussross closed 8 years ago

firdoussross commented 9 years ago

Changed width checking from using .width() to outerWidth() on one part.

Some notes: I have experienced some of my sidebar items keeps shrinking in width when using bottomSpacing values. This element have no fixed width (it expands to suit the container). I noticed that on every scroll up, the width of the item is being shrunk by a few pixels (probably caused by the css borders), until to a point where the width is zero.

Changing the width checking to outerWidth() fixes this for me. Do check if this is appropriate.