Skip to content

Commit

Permalink
Merge branch 'combination'. [common]
Browse files Browse the repository at this point in the history
  • Loading branch information
cbpowell committed Apr 13, 2016
2 parents 4fd215a + 10fd623 commit 26db256
Show file tree
Hide file tree
Showing 94 changed files with 5,344 additions and 736 deletions.
10 changes: 7 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,15 @@ MarqueeLabelDemo/build/*
!default.mode2v3
*.perspectivev3
!default.perspectivev3
*.xcworkspace
!default.xcworkspace
xcuserdata
profile
*.moved-aside
*.xccheckout
*.moved-aside
*.xcuserstate

# Exclude OS X folder attributes
.DS_Store
.DS_Store

# Excluse Carthage build artifacts
Carthage
File renamed without changes.
4 changes: 3 additions & 1 deletion MarqueeLabel.m → Classes/ObjC/MarqueeLabel.m
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ - (void)setupLabel {
[self addSubview:self.subLabel];

// Setup default values
_marqueeType = MLContinuous;
_awayOffset = 0.0f;
_animationCurve = UIViewAnimationOptionCurveLinear;
_labelize = NO;
Expand Down Expand Up @@ -458,7 +459,8 @@ - (BOOL)labelShouldScroll {
}

BOOL labelTooLarge = ([self subLabelSize].width + self.leadingBuffer > self.bounds.size.width);
return (!self.labelize && labelTooLarge);
BOOL animationHasDuration = (self.scrollDuration > 0.0f || self.rate > 0.0f);
return (!self.labelize && labelTooLarge && animationHasDuration);
}

- (BOOL)labelReadyForScroll {
Expand Down
Loading

0 comments on commit 26db256

Please sign in to comment.