Permalink
Browse files

you want the height for the section because its the "row"

  • Loading branch information...
echoz committed Sep 21, 2011
1 parent 125a275 commit 7d24f94a92fe47d15e83b2ad34c6ca4bed0201ae
Showing with 1 addition and 1 deletion.
  1. +1 −1 JOGridView.m
View
@@ -230,7 +230,7 @@ -(JOGridViewCell *)cellForlayoutAtIndexPath:(NSIndexPath *)indexPath atHeight:(C
[self addSubview:cell];
}
- cell.frame = CGRectMake(indexPath.row * (self.frame.size.width / __columns), height, self.frame.size.width / __columns, [self delegateHeightForRow:indexPath.row]);
+ cell.frame = CGRectMake(indexPath.row * (self.frame.size.width / __columns), height, self.frame.size.width / __columns, [self delegateHeightForRow:indexPath.section]);
[cell layoutSubviews];
return cell;

0 comments on commit 7d24f94

Please sign in to comment.