If I attach sticky element to my div absolutely positioned with non-zero "left" value, after resizing window I see horizontal scroll and "parasite" empty bar on the right of my document. It's width is exactly as "left" position of sticky element. Because You don't care about sticky left position.
I could fix it by adding code at the line 116 (sticky version 1.0.2):
Before change:
s.stickyElement.css('width', newWidth);
After change:
var lfpos = (s.stickyElement.css('left') || 0);
s.stickyElement.css('width', newWidth - lfpos);
If I attach sticky element to my div absolutely positioned with non-zero "left" value, after resizing window I see horizontal scroll and "parasite" empty bar on the right of my document. It's width is exactly as "left" position of sticky element. Because You don't care about sticky left position.
I could fix it by adding code at the line 116 (sticky version 1.0.2): Before change:
After change: