Browse files

Set back the vertical layout as default

  • Loading branch information...
1 parent deef349 commit 7f81e69a3754c5b7aa8900ceff0d8de10a7a351a @gmoledina committed Nov 1, 2011
Showing with 7 additions and 3 deletions.
  1. +2 −2 GMGridView/API/GMGridView.m
  2. +4 −0 GMGridView/API/GMGridViewLayoutStrategies.m
  3. +1 −1 GMGridView/ViewController.m
View
4 GMGridView/API/GMGridView.m
@@ -188,8 +188,8 @@ - (id)initWithFrame:(CGRect)frame
[_scrollView.panGestureRecognizer setMaximumNumberOfTouches:1];
[_scrollView.panGestureRecognizer requireGestureRecognizerToFail:_sortingPanGesture];
- //self.layoutStrategy = [GMGridViewLayoutStrategyFactory strategyFromType:GMGridViewLayoutVertical];
- self.layoutStrategy = [GMGridViewLayoutStrategyFactory strategyFromType:GMGridViewLayoutHorizontal]; // Work in progress
+ self.layoutStrategy = [GMGridViewLayoutStrategyFactory strategyFromType:GMGridViewLayoutVertical];
+ //self.layoutStrategy = [GMGridViewLayoutStrategyFactory strategyFromType:GMGridViewLayoutHorizontal]; // Work in progress
self.itemSpacing = 10;
self.style = GMGridViewStyleSwap;
View
4 GMGridView/API/GMGridViewLayoutStrategies.m
@@ -29,6 +29,7 @@
#import "GMGridViewLayoutStrategies.h"
//////////////////////////////////////////////////////////////
+#pragma mark -
#pragma mark - Factory implementation
//////////////////////////////////////////////////////////////
@@ -56,6 +57,7 @@ @implementation GMGridViewLayoutStrategyFactory
//////////////////////////////////////////////////////////////
+#pragma mark -
#pragma mark - Strategy base class implementation
//////////////////////////////////////////////////////////////
@@ -72,6 +74,7 @@ @implementation GMGridViewLayoutStrategyBase
//////////////////////////////////////////////////////////////
+#pragma mark -
#pragma mark - Vertical strategy implementation
//////////////////////////////////////////////////////////////
@@ -147,6 +150,7 @@ - (NSInteger)itemPositionFromLocation:(CGPoint)location
//////////////////////////////////////////////////////////////
+#pragma mark -
#pragma mark - Horizontal strategy implementation
//////////////////////////////////////////////////////////////
View
2 GMGridView/ViewController.m
@@ -10,7 +10,7 @@
#import "GMGridView.h"
#import <QuartzCore/QuartzCore.h>
-#define NUMBER_ITEMS_ON_LOAD 25
+#define NUMBER_ITEMS_ON_LOAD 250
//////////////////////////////////////////////////////////////
#pragma mark -

0 comments on commit 7f81e69

Please sign in to comment.