swipe_title 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
@@ -25,7 +25,7 @@ class SwipeTitleController < UIViewController
|
|
25
25
|
|
26
26
|
def viewWillLayoutSubviews
|
27
27
|
@swipeController.collectionView.frame = CGRectMake(0, 0,
|
28
|
-
view.frame.size.width, view.frame.size.height
|
28
|
+
view.frame.size.width, view.frame.size.height)
|
29
29
|
@pageControl.frame = CGRectMake(0, view.frame.size.height - 14,
|
30
30
|
view.frame.size.width, 14)
|
31
31
|
end
|
@@ -52,10 +52,10 @@ class SwipeTitleLayout < UICollectionViewLayout
|
|
52
52
|
layoutAttributesForCellWithIndexPath(path).tap do |obj|
|
53
53
|
|
54
54
|
x = (path.row + 0.5) * collectionView.frame.size.width
|
55
|
-
y = collectionView.frame.size.height / 2
|
55
|
+
y = (collectionView.frame.size.height - 14) / 2
|
56
56
|
|
57
57
|
obj.center = [x, y]
|
58
|
-
obj.size = [collectionView.frame.size.width, collectionView.frame.size.height]
|
58
|
+
obj.size = [collectionView.frame.size.width, collectionView.frame.size.height - 14]
|
59
59
|
end
|
60
60
|
end
|
61
61
|
|
data/lib/swipe_title/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: swipe_title
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-02-
|
12
|
+
date: 2013-02-14 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
@@ -65,7 +65,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
65
65
|
version: '0'
|
66
66
|
segments:
|
67
67
|
- 0
|
68
|
-
hash:
|
68
|
+
hash: 4583783504724744134
|
69
69
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
70
70
|
none: false
|
71
71
|
requirements:
|
@@ -74,7 +74,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
74
74
|
version: '0'
|
75
75
|
segments:
|
76
76
|
- 0
|
77
|
-
hash:
|
77
|
+
hash: 4583783504724744134
|
78
78
|
requirements: []
|
79
79
|
rubyforge_project:
|
80
80
|
rubygems_version: 1.8.24
|