react-measure
Advanced tools
Changelog
0.4.2
Removed old code from lib
folder
Make sure package.json
cleans lib
folder on each build
Changelog
0.4.1
Fixed dist build
Updated to latest element-resize-detector
Changelog
0.4.0
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
Changelog
0.3.5
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.
Changelog
0.3.3
Added public method getDimensions
Clone nodes without any children
Fixed calculating measurements on resize
Changelog
0.3.2
Patch to fix shallowCompare
so bower works.
Added a resize handler to measure component changes on window resize.
Changelog
0.3.1
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
Changelog
0.3.0
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