Skip to content
Browse files

separated text position for clarity.

  • Loading branch information...
1 parent ba229fe commit 733116325ef9934889236297b4c62e7daa33c84e @odrobnik odrobnik committed Aug 29, 2012
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];

0 comments on commit 7331163

Please sign in to comment.
Something went wrong with that request. Please try again.