Permalink
Browse files

When the cells are re-loaded, we're shifting over to the very right.

  • Loading branch information...
1 parent 26b5354 commit ef92e12cec005e86e3079aba8e81b7b92b3637a5 @guykogus guykogus committed Dec 7, 2011
Showing with 4 additions and 2 deletions.
  1. +4 −2 DTGridView.m
View
@@ -484,6 +484,8 @@ - (void)loadData {
[cellInfoArrayCols release];
}
+ self.contentSize = CGSizeMake(maxWidth, maxHeight);
+
// If we're going right to left, we want to shift all the rows to the right
if (self.layoutDirectionality & DTGridViewDirectionalityRightToLeft) {
for (NSArray *cellInfoArrayCols in cellInfoArrayRows) {
@@ -508,10 +510,10 @@ - (void)loadData {
}
}
}
+
+ self.contentOffset = CGPointMake(maxWidth - self.frame.size.width, 0.0);
}
- self.contentSize = CGSizeMake(maxWidth, maxHeight);
-
self.gridCells = cellInfoArrayRows;
[cellInfoArrayRows release];

0 comments on commit ef92e12

Please sign in to comment.