Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #288 from bartvandendriessche/master

NIAttributedLabel: highlight for link drawn at incorrect y offset
  • Loading branch information...
commit 03aac558166c9186892f28bc08a67752bbddf6ab 2 parents 71b30a1 + 9a8ca05
@jverkoey authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  src/attributedlabel/src/NIAttributedLabel.m
View
1  src/attributedlabel/src/NIAttributedLabel.m
@@ -1247,6 +1247,7 @@ - (void)drawTextInRect:(CGRect)rect {
}
CGRect highlightRect = [self _rectForRange:linkRange inLine:line lineOrigin:lineOrigins[i]];
+ highlightRect = CGRectOffset(highlightRect, 0, -rect.origin.y);
if (!CGRectIsEmpty(highlightRect)) {
CGFloat pi = (CGFloat)M_PI;
Please sign in to comment.
Something went wrong with that request. Please try again.