Skip to content

Releases: yahoo/react-stickynode

Compatible with React@15 and React@0.14

12 Apr 00:08
Compare
Choose a tag to compare

Now Sticky support React@15 as well!

Thank @roderickhsiao

Introduce State Change Handling

06 Apr 03:59
Compare
Choose a tag to compare

In many situations, we need to do something according to sticky status. Previously, we had contextual class to help us know sticky status, now we have a callback function! Thank you @eligolding.

https://github.com/yahoo/react-stickynode#handling-state-change

Fix Sticky recalculation issue

30 Mar 06:34
Compare
Choose a tag to compare

Fix that Sticky doesn't recalculate dimension when it's parent gets updated.

Fix some issues

25 Mar 06:40
Compare
Choose a tag to compare

Fixed the issue that Sticky is in FIXED status and its height gets changed, it will be always FIXED.

Introduce active class

17 Mar 18:37
Compare
Choose a tag to compare

We introduced a prop activeClass which will set to Sticky class when it is in fixed status. By default, the value of the prop is active. This feature provide flexibility to users to do more their own stuffs.

@fender

Support responsive

17 Mar 05:57
Compare
Choose a tag to compare

In some situation, for example, responsive design, Sticky will be set as display:none. In this case, Sticky should be disable for better performance.

Thanks @testerez.

#9

Bug fix

03 Mar 01:27
Compare
Choose a tag to compare

Sticky wrapper will keep the width as that of its content to avoid the width being changed by Sticky state change. This release fixed incorrect calculation of the width.

Support enableTransforms

25 Feb 18:22
Compare
Choose a tag to compare

We added enableTransforms prop in case you cannot add Modernizr, so that you can disable transform. The default is true, so Modernizr is required by default. But still, strongly recommend to use the default value for the performance.

Thank @codeheroics for the contribution.

256fb94

Better precision on height

25 Feb 01:09
Compare
Choose a tag to compare

Using getBoundingClientRect() instead of offsetHeight to get better precision.

More precise content width

25 Feb 00:56
Compare
Choose a tag to compare

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