Skip to content

Support Element Dimensions

Compare
Choose a tag to compare
@ethanselzer ethanselzer released this 26 May 21:26
· 31 commits to master since this release

Addresses Issue #7

  • 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
  • Special thanks to @AlexMeah for suggesting this feature and opening a prototype PR!