garand / sticky

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

Position fixed influence the width of an element #112

Open cbou opened 10 years ago

cbou commented 10 years ago

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.