Child components and the onPositionChanged callback receive a new property named elementDimensions. elementDimensions is an object with width and height properties of type Number. Dimensions are taken from the element rendered by react-cursor-position. This could be especially useful in a fluid layout where element dimensions may not be known at design time.
Update dependencies and convert to babel-plugin-istanbul for code coverage instrumentation
Coverage remained the same at 100.0% when pulling 830fa1f5a0f1fb755842afc0dcc89c95eec209c0 on element-dimensions into 497f0603b1f3f63290cfeecd9ea52d10b16c838f on master.
Coverage remained the same at 100.0% when pulling 8f288733ce4263d40cc1f3b9863a739cfdd0ec0a on element-dimensions into 497f0603b1f3f63290cfeecd9ea52d10b16c838f on master.
Addresses #7
elementDimensions
.elementDimensions
is an object withwidth
andheight
properties of type Number. Dimensions are taken from the element rendered by react-cursor-position. This could be especially useful in a fluid layout where element dimensions may not be known at design time.