Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Set back the vertical layout as default

  • Loading branch information...
commit 7f81e69a3754c5b7aa8900ceff0d8de10a7a351a 1 parent deef349
@gmoledina authored
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 -
Please sign in to comment.
Something went wrong with that request. Please try again.