Skip to content

Releases: maslianok/react-resize-detector

v2.2.0

06 Mar 14:38
Compare
Choose a tag to compare
  • added refreshMode and refreshRate props. Thanks to @lamhieu-vk

v.2.1.0

27 Feb 21:12
Compare
Choose a tag to compare

Add resizableElementId prop: (string) Id of the element we want to observe. If no one provided, parentElement of the component will be used.

In some situations, complex layouts, the resizer cannot be set as child of the desired element to be watched for resize. This new property allow coder to hard-code a element id instead of use the immediate parentElement of the component.

Thanks @MoleDJ

v.2.0.0

25 Feb 13:23
Compare
Choose a tag to compare

The approach to handle element resizes was rewritten from scratch.
Now it uses ResizeObserver with polyfill which allows you to use the native implementation in modern browsers!

Added new prop skipOnMount - (Bool) do not trigger onResize when a component mounts. Default: false.

React v.16

10 Oct 10:04
Compare
Choose a tag to compare

Add React v16 support (@jameswomack)

0.6.0

29 Aug 10:40
Compare
Choose a tag to compare
  • Fix unexpected scrollbars in Chrome on OS X (@mherold)
  • Report the initial size of the item (@remotezygote)
  • Don't report the onscroll event of the parent element (@able99)
  • Upgrade dependencies

v0.5.0

04 May 04:16
Compare
Choose a tag to compare

Bug fixes:

  • #12 Make sure the component updates if the state changes