Position fixed influence the width of an element

The width of the stickyElement should be set before the position change for fixed.

If the getWidthFrom is the stickyElement itself, the width will be wrong.