Skip to content

Commit

Permalink
pass updateDimensions to children
Browse files Browse the repository at this point in the history
  • Loading branch information
SunJang committed Dec 21, 2015
1 parent b9186d2 commit 46b8f62
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/index.js
node_modules
2 changes: 1 addition & 1 deletion index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export default function Dimensions ({ getHeight = defaultGetHeight, getWidth = d
return (
<div style={style} ref='container'>
{(this.state.containerWidth || this.state.containerHeight) &&
<ComposedComponent {...this.state} {...this.props}/>}
<ComposedComponent {...this.state} {...this.props} updateDimensions={this.updateDimensions}/>}
</div>
)
}
Expand Down

0 comments on commit 46b8f62

Please sign in to comment.