Disconnect correct node within handleRef
#51
Observe and disconnect ResizeObserver in ref callback
Complete rewrite. Check README for new docs.
Most transitions from the old API should be easy. You just need to pass a ref callback down now. If you have any issues please feel free to file an issue.
Update to use separate prop-types package as per React 15.5 deprecation #43
Update to resize-observer-polyfill
1.4.1
Update to resize-observer-polyfill
1.3.1 to fix Webpack 2 issues #29
Remove monkey patch for importing resize-observer-polyfill
Use ResizeObserver.default if available. This fixes older browsers in the local dev environment.
Requiring default export of resize-observer-polyfill
#28
Only require ResizeObserver polyfill when window is available
Cleanup old element-resize-detector code #23
Moved away from element-resize-detector in favor of resize-observer-polyfill 🎉
Fixes exception when changing key of rendered child #19
Update get-node-dimensions to 1.2.0
Use includeMargin
to account for margins when calculating dimensions now
Fix dist build
Ensure setState
is not called after unmounting #18
Provide dimension defaults
Update get-node-dimensions to 1.1.0
Update get-node-dimensions to 1.0.0
accurate
renamed to useClone
Added cloneOptions
prop that gets passed to getNodeDimensions
Fixed build to not include get-node-dimensions
library
Removed bower support
Use properties instead of constructor
When unmounting, call uninstall in addition to removeAllListeners #15
Moved dimension calculations to its own library
Cleaned up build files for NPMCDN
Removed old code from lib
folder
Make sure package.json
cleans lib
folder on each build
Fixed dist build
Updated to latest element-resize-detector
Moved away from MutationObserver's in favor of element-resize-detector
Added a more convenient API by allowing child functions #11
measure
is now a public method available on the Measure component
accurate
prop now returns both cloned element width and height
shouldMeasure
now accepts only a boolean
Removed lodash.debounce
dependency
Fixed bug in IE with accurate height calculation when checking for children nodes.
Fixed deprecation notice when calculating SVG dimensions.
Removed react-addons-shallow-compare
dependency.
Moved react
and react-dom
packages into peer dependencies.
Fix server-side rendering
Added public method getDimensions
Clone nodes without any children
Fixed calculating measurements on resize
Patch to fix shallowCompare
so bower works.
Added a resize handler to measure component changes on window resize.
Renamed onChange
prop to onMeasure
Added shouldMeasure
prop, similar to componentShouldUpdate. It determines whether or not the onMeasure
callback will fire, useful for perf and not performing measurements if you don't need to.
Fixed updating of config
prop to disconnect and reconnect a new MutationObserver with the new configuration
Fixed updaing of whitelist
& blacklist
props to use new values
Rebuilt from the ground up
No more cloning of elements!
Optimized to touch the DOM as least as possible
clone
, forceAutoHeight
, collection
props removed
config
prop added, accepts a MutationObserver configuration
accurate
prop added, use to get an accurate measurement, only height supported right now
Upgraded to React 0.14.0
Added forceAutoHeight
prop to help with proper height calculation when children heights are animating
Clone prop now exposed to allow optional cloning of component
Defaults to false which could potentially break components relying on cloned calculations
Set width/height to auto on clone no matter what to get a true dimension
Append clone directly after original instead of the end of its parent
Portal now gets destroyed after measurements have been calculated
Rewritten to be more React friendly
Measure component no longer accepts a child function, instead get dimensions by setting state in onChange callback