Default to global (possibly polyfilled) ResizeObserver if the local window does not have ResizeObserver #148
Use ResizeObserver
of local window
object #147
Set innerRef
before observing #140
Use the local window
object of the observed node #146
Fix regression with contentRect.bounds
not getting called properly
Note that onResize
will get called twice when first mounting now
Fix initial onResize
delay caused by requestAnimationFrame
#135
Fix sporadic ResizeObserver
loop limit exceeded error when using onResize
#133
Only observe one element, add tests #130
Fix not passing ResizeObserver
entries
to measure
method #125
Add support for createRef
#126
Add @babel/runtime
as a dependency
Fix ResizeObserver
callback error
Fix eslint
warnings
Remove componentWillMount
for React >16 StrictMode compliance
#121
Upgrade get-node-dimensions
package to 1.2.1
Upgrade prop-types
package to 15.6.2
Fixes disconnect
being used instead of unobserve
for ResizeObserver
Update resize-observer-polyfill
#88
Added handling when getComputedStyle
returns null
#89
Call setState
within requestAnimationFrame
to prevent infinite loop
#118
Move children propType from with-content-rect to Measure #117
Allow children to be any element #78
Disconnect and de-initialize resize observer on unmount #112
Remove babel-plugin-add-module-exports
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