Edit comment.

This commit is contained in:
Lukhnos D. Liu 2012-03-29 21:07:45 -07:00
parent 005437db28
commit e4c54e6bb9
1 changed files with 1 additions and 1 deletions

View File

@ -207,7 +207,7 @@ static const CGFloat kCandidateTextLeftMargin = 8.0;
NSAttributedString *attrString = [[[NSAttributedString alloc] initWithString:candidate attributes:[NSDictionary dictionaryWithObjectsAndKeys:_candidateFont, NSFontAttributeName, _candidateTextParagraphStyle, NSParagraphStyleAttributeName, nil]] autorelease];
// we do more work than what this method is expected; normally not a good practice, but for the amount of data (9 to 10 rows max), we can afford the overhead
// we do more work than what this method is expected to; normally not a good practice, but for the amount of data (9 to 10 rows max), we can afford the overhead
// expand the window width if text overflows
NSRect boundingRect = [attrString boundingRectWithSize:NSMakeSize(10240.0, 10240.0) options:NSStringDrawingUsesLineFragmentOrigin];