Skip to content

Commit

Permalink
Fix regression on sublabel sizing in 2.0.7.
Browse files Browse the repository at this point in the history
  • Loading branch information
cbpowell committed Oct 21, 2014
1 parent d9a4baa commit 2ff7e7b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions MarqueeLabel.m
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,8 @@ - (CGSize)subLabelSize {

// Get size of subLabel
expectedLabelSize = [self.subLabel sizeThatFits:maximumLabelSize];
// Adjust to own height (make text baseline match normal label)
expectedLabelSize.height = self.bounds.size.height;

return expectedLabelSize;
}
Expand Down

0 comments on commit 2ff7e7b

Please sign in to comment.