github yahoo/react-stickynode v1.0.9
More precise content width

latest releases: v5.0.2, v5.0.1, v5.0.0...
9 years ago

Sticky keeps content width, and height to avoid collapse when its state is "fixed". Sticky got width from the offsetWidth of content, but the width is rounded. A better way is to get width from calling getBoundingClientRect(), thank @testerez. To support lower browser (IE8 and lower), we fallback like

var outerRect = outer.getBoundingClientRect();
var width = outerRect.width || outerRect.right - outerRect.left;

#17

Don't miss a new react-stickynode release

NewReleases is sending notifications on new releases.