mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-27 17:05:53 +00:00
correction of height calculation
This commit is contained in:
1 parent
88954b9bf6
commit
f82e52b7a2
1 file changed
+1
-1
@@ -623,7 +623,7 @@ var HORIZONTAL_MARGIN = 2;
|
||||
|
||||
height = MAX(height, numberOfRows * (_minItemSize.height + _verticalMargin));
|
||||
|
||||
var itemSizeHeight = itemSize.height;
|
||||
var itemSizeHeight = FLOOR(height / numberOfRows) - _verticalMargin;
|
||||
|
||||
if (maxItemSizeHeight > 0)
|
||||
itemSizeHeight = MIN(itemSizeHeight, maxItemSizeHeight);
|
||||
|
||||
Reference in new issue
Block a user