Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

multigrid support onScroll #536

Merged
merged 2 commits into from
Jan 12, 2017
Merged

multigrid support onScroll #536

merged 2 commits into from
Jan 12, 2017

Conversation

Pana
Copy link
Contributor

@Pana Pana commented Jan 11, 2017

multigrid support onScroll

@@ -433,7 +434,7 @@ export default class MultiGrid extends Component {
columnCount={columnCount - fixedColumnCount}
columnWidth={this._columnWidthRightGrid}
height={this._getBottomGridHeight(props)}
onScroll={this._onScroll}
onScroll={(info) => {this._onScroll(info);onScroll && onScroll(info)}}
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about moving this into the _onScroll method? That way the code's a bit easier to read and we avoid creating a new wrapper function on each render. :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh right, i thought the _onScroll has been used not only in bottomRight grid, also in other grid. And the passed onScroll only should use in one Grid.
I will update it.

@bvaughn bvaughn merged commit f7bcf22 into bvaughn:master Jan 12, 2017
@bvaughn
Copy link
Owner

bvaughn commented Jan 12, 2017

Thanks 😄 This will go out in a point release soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants