0006-Fix-resetting-grid-view-frame.patch 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. From 36e96717af0d398510ec6376bd4148473967e0ed Mon Sep 17 00:00:00 2001
  2. From: Gleb Pinigin <gpinigin@gmail.com>
  3. Date: Sun, 1 Sep 2013 12:24:03 +0700
  4. Subject: [PATCH 6/6] Fix resetting grid view frame
  5. ---
  6. Classes/AQGridView.m | 4 ++--
  7. Classes/AQGridViewCell.m | 2 +-
  8. 2 files changed, 3 insertions(+), 3 deletions(-)
  9. diff --git a/Classes/AQGridView.m b/Classes/AQGridView.m
  10. index 1ab0df0..c000a5a 100755
  11. --- a/Classes/AQGridView.m
  12. +++ b/Classes/AQGridView.m
  13. @@ -642,8 +642,8 @@ NSString * const AQGridViewSelectionDidChangeNotification = @"AQGridViewSelectio
  14. // -layoutSubviews will update the visible cell list
  15. // layout -- no animation
  16. - [self setNeedsLayout];
  17. - _flags.allCellsNeedLayout = 1;
  18. + _flags.allCellsNeedLayout = 1;
  19. + [self setNeedsLayout];
  20. }
  21. #define MAX_BOUNCE_DISTANCE (500.0f)
  22. diff --git a/Classes/AQGridViewCell.m b/Classes/AQGridViewCell.m
  23. index 1eb72ba..aedd73e 100644
  24. --- a/Classes/AQGridViewCell.m
  25. +++ b/Classes/AQGridViewCell.m
  26. @@ -539,7 +539,7 @@
  27. _cellFlags.setShadowPath = 0;
  28. - CGRect cFrame = self.bounds;
  29. + CGRect cFrame = self.frame;
  30. if ( _cellFlags.separatorStyle == AQGridViewCellSeparatorStyleSingleLine )
  31. {
  32. if ( _cellFlags.separatorEdge & AQGridViewCellSeparatorEdgeBottom )
  33. --
  34. 1.7.12.4 (Apple Git-37)