Skip to content

Commit

Permalink
🐛 Fixing a bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
lijingcheng committed Mar 25, 2017
1 parent d1e5196 commit 6b6212d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion JCTagListView.podspec
Expand Up @@ -9,7 +9,7 @@

Pod::Spec.new do |s|
s.name = "JCTagListView"
s.version = "1.0.1"
s.version = "1.0.2"
s.summary = "Support delete tags and settings tags color."
s.homepage = "http://lijingcheng.github.io/"
# s.screenshots = "www.example.com/screenshots_1", "www.example.com/screenshots_2"
Expand Down
4 changes: 2 additions & 2 deletions Pod/Classes/JCTagListView.m
Expand Up @@ -71,8 +71,8 @@ - (CGSize)collectionView:(UICollectionView *)collectionView layout:(UICollection
CGSize maxSize = CGSizeMake(collectionView.frame.size.width - layout.sectionInset.left - layout.sectionInset.right, layout.itemSize.height);

CGRect frame = [self.tags[indexPath.item] boundingRectWithSize:maxSize options:NSStringDrawingUsesFontLeading|NSStringDrawingUsesLineFragmentOrigin attributes:@{NSFontAttributeName: self.tagTextFont} context:nil];
return CGSizeMake(frame.size.width + 20.0f, layout.itemSize.height);

return CGSizeMake(frame.size.width + 20.0f, frame.size.height + 10.0f);
}

- (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath {
Expand Down
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -15,13 +15,13 @@ Support delete tags and settings tags color.
Installation with CocoaPods

```
pod "JCTagListView", "1.0.1"
pod "JCTagListView", "1.0.2"
```

Installation with Carthage

```
github "lijingcheng/JCTagListView" ~> 1.0.1
github "lijingcheng/JCTagListView" ~> 1.0.2
```

## Usage
Expand Down

0 comments on commit 6b6212d

Please sign in to comment.