Skip to content

Commit

Permalink
Fixes selection indicator always appearing at bottom.
Browse files Browse the repository at this point in the history
  • Loading branch information
HeshamMegid committed Aug 14, 2014
1 parent bb16b3e commit 1a4e163
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion HMSegmentedControl/HMSegmentedControl.m
Expand Up @@ -418,8 +418,9 @@ - (CGRect)frameForSelectionIndicator {
if (self.selectionIndicatorLocation == HMSegmentedControlSelectionIndicatorLocationDown) {
indicatorYOffset = self.bounds.size.height - self.selectionIndicatorHeight + self.selectionIndicatorEdgeInsets.bottom;
}

if (self.selectionIndicatorLocation == HMSegmentedControlSelectionIndicatorLocationUp) {
indicatorYOffset = self.bounds.size.height - self.selectionIndicatorHeight + self.selectionIndicatorEdgeInsets.top;
indicatorYOffset = self.selectionIndicatorEdgeInsets.top;
}

CGFloat sectionWidth = 0.0f;
Expand Down

0 comments on commit 1a4e163

Please sign in to comment.