Skip to content
This repository has been archived by the owner on Dec 2, 2021. It is now read-only.

Commit

Permalink
Added size argument to ListLayout itemSize callback.
Browse files Browse the repository at this point in the history
  • Loading branch information
IjzerenHein committed Nov 6, 2015
1 parent aa114ee commit 5de0a99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/layouts/ListLayout.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ define(function(require, exports, module) {
//
// Get node size
//
nodeSize = getItemSize ? getItemSize(node.renderNode) : itemSize;
nodeSize = getItemSize ? getItemSize(node.renderNode, context.size) : itemSize;
nodeSize = (nodeSize === true) ? context.resolveSize(node, size)[direction] : nodeSize;

//
Expand Down Expand Up @@ -222,7 +222,7 @@ define(function(require, exports, module) {
//
// Get node size
//
nodeSize = getItemSize ? getItemSize(node.renderNode) : itemSize;
nodeSize = getItemSize ? getItemSize(node.renderNode, context.size) : itemSize;
nodeSize = (nodeSize === true) ? context.resolveSize(node, size)[direction] : nodeSize;

//
Expand Down

0 comments on commit 5de0a99

Please sign in to comment.