Skip to content

Commit 1e8a6da

Browse files
authored
Merge pull request #3 from IMCHO/fix/add-missing-feature
원앱에서 기존에 사용하고 있던 수정사항 반영
2 parents ea8feec + 801f23e commit 1e8a6da

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

TTTAttributedLabel/TTTAttributedLabel.m

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,10 @@ static inline CGFloat TTTFlushFactorForTextAlignment(NSTextAlignment textAlignme
171171
}
172172

173173
static inline CGSize CTFramesetterSuggestFrameSizeForAttributedStringWithConstraints(CTFramesetterRef framesetter, NSAttributedString *attributedString, CGSize size, NSUInteger numberOfLines) {
174+
if (size.width < 0) {
175+
size.width = TTTFLOAT_MAX;
176+
}
177+
174178
CFRange rangeToSize = CFRangeMake(0, (CFIndex)[attributedString length]);
175179
CGSize constraints = CGSizeMake(size.width, TTTFLOAT_MAX);
176180

0 commit comments

Comments
 (0)