react-dimensions v2.0.0-alpha1 Release Notes
Release Date: 2016-08-12 // over 7 years ago-
โ Added
- โ Added a CHANGELOG.md
- ๐ฅ Breaking: Measure the parent node rather than the wrapper. You will need to wrap this component in a
<div>
and style that. - ๐ฅ Breaking: Removed
containerStyle
andcontainerClass
options - the wrapper<div>
is no longer used for calculating dimensions. - ๐ฅ Breaking: Removed options
getWidth
andgetHeight
, replaced withgetDimensions
. This will allow replacing the current dimensions calculation with a single call togetBoundingClientRect()
, rather than two. Currently we are still usingelement.clientWidth
andelement.clientHeight
for dimension calculation.