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.
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.