Skip to content

Commit

Permalink
feat(InfiniteGrid): change direction option to horizontal
Browse files Browse the repository at this point in the history
  • Loading branch information
Younkue committed Nov 24, 2017
1 parent 991c9b3 commit 04c6181
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/InfiniteGrid.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ class InfiniteGrid extends Component {
*/
setLayout(LayoutKlass, options) {
this._layout = new LayoutKlass(Object.assign(options || {}, {
direction: this._isVertical ? "vertical" : "horizontal",
horizontal: !this._isVertical,
}));
this._layout.setSize(this._renderer.getContainerSize());
return this;
Expand Down

0 comments on commit 04c6181

Please sign in to comment.