From 5de0a99dfc0da160b2589b2e302f1eb3ac464cf0 Mon Sep 17 00:00:00 2001 From: IjzerenHein Date: Fri, 6 Nov 2015 16:30:47 +0100 Subject: [PATCH] Added size argument to ListLayout itemSize callback. --- src/layouts/ListLayout.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/layouts/ListLayout.js b/src/layouts/ListLayout.js index 82a4ca1..e2cd1e9 100644 --- a/src/layouts/ListLayout.js +++ b/src/layouts/ListLayout.js @@ -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; // @@ -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; //