Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

separated text position for clarity.

  • Loading branch information...
commit 733116325ef9934889236297b4c62e7daa33c84e 1 parent ba229fe
@Cocoanetics authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 Core/Source/DTLinkButton.m
View
4 Core/Source/DTLinkButton.m
@@ -230,7 +230,9 @@ - (void)drawTextInContext:(CGContextRef)context highlighted:(BOOL)highlighted
// Flip the coordinate system
CGContextSetTextMatrix(context, CGAffineTransformIdentity);
CGContextScaleCTM(context, 1.0, -1.0);
- CGContextTranslateCTM(context, 0, -self.bounds.size.height+ceilf(glyphRunToDraw.descent+self.contentEdgeInsets.bottom));
+ CGContextTranslateCTM(context, 0, -self.bounds.size.height);
+
+ CGContextSetTextPosition(context, 0, ceilf(glyphRunToDraw.descent+self.contentEdgeInsets.bottom));
[glyphRunToDraw drawInContext:context];
Please sign in to comment.
Something went wrong with that request. Please try again.