mattt/TTTAttributedLabel — pull request #28 by PeteC (2011-12-01 15:20:43+00:00)
Title: Improve sizeThatFits:

These commits update sizeThatFits: to take into consideration the label's numberOfLines value

* If numberOfLines is 0, the size returned the same as the current implementation. It's limited to the width of the label but enough height to contain all the text.

* If the number of lines is 1, the size returned is the size of all the text on a single line

* If the number if lines is greater than 1, the size returned is limited to the width of the label and the number of lines of text specified.