//
//  WMShareCollectionViewFlowLayout.m
//  Gengmei
//
//  Created by Sean Lee on 1/23/15.
//  Copyright (c) 2015 Wanmeichuangyi. All rights reserved.
//

#import "GMShareFlowLayout.h"
#import <GMKit/Constant.h>

@implementation GMShareFlowLayout

-(void)prepareLayout{
    [super prepareLayout];
    self.minimumLineSpacing = 30;
    self.itemSize = CGSizeMake(50, 70);
    self.sectionInset = UIEdgeInsetsMake(20, 24, 20, 24);
    self.minimumInteritemSpacing = floor((MAINSCREEN_WIDTH - SHARE_BUTTON_WIDTH*5 - self.sectionInset.left - self.sectionInset.right)/4);
    [self setScrollDirection:UICollectionViewScrollDirectionVertical];
}

@end
