Skip to content

Commit

Permalink
Revert fix originally made for issue #105. Fixes incorrect scrolling …
Browse files Browse the repository at this point in the history
…for fractional widths.
  • Loading branch information
cbpowell committed Jan 16, 2016
1 parent 865131e commit cfada62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MarqueeLabel.m
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ - (CGSize)subLabelSize {
// Get size of subLabel
expectedLabelSize = [self.subLabel sizeThatFits:maximumLabelSize];
// Sanitize width to 5461.0f (largest width a UILabel will draw on an iPhone 6S Plus)
expectedLabelSize.width = ceil(MIN(expectedLabelSize.width, 5461.0f));
expectedLabelSize.width = MIN(expectedLabelSize.width, 5461.0f);
// Adjust to own height (make text baseline match normal label)
expectedLabelSize.height = self.bounds.size.height;

Expand Down

0 comments on commit cfada62

Please sign in to comment.