Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
TBXark committed Dec 7, 2016
1 parent 53fdf42 commit 118b282
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Binary file not shown.
6 changes: 3 additions & 3 deletions PinterestSegment/PinterestSegment.swift
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public class PinterestSegment: UIControl {
}
public var valueChange: ((Int) -> Void)?
fileprivate var titleLabels: [UILabel] = []
fileprivate(set) var selectIndex = 0
public fileprivate(set) var selectIndex = 0


fileprivate let scrollView: UIScrollView = {
Expand Down Expand Up @@ -193,8 +193,8 @@ extension PinterestSegment {
selectContent.addSubview(frontLabel)

if index == titles.count - 1 {
scrollView.contentSize.width = rect.maxX
selectContent.frame.size.width = rect.maxX
scrollView.contentSize.width = rect.maxX + style.titleMargin
selectContent.frame.size.width = rect.maxX + style.titleMargin
}
}

Expand Down

0 comments on commit 118b282

Please sign in to comment.