Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed problem with shifted DTLink string for small fonts

  • Loading branch information...
commit cfb0ed23a3adb1cd3be0ca9e9639ec717745dfdc 1 parent 2194b54
@Cocoanetics authored
Showing with 1 addition and 2 deletions.
  1. +1 −2  Core/Source/DTLinkButton.m
View
3  Core/Source/DTLinkButton.m
@@ -238,12 +238,11 @@ - (void)drawTextInContext:(CGContextRef)context highlighted:(BOOL)highlighted
CGContextScaleCTM(context, 1.0, -1.0);
CGContextTranslateCTM(context, 0, -self.bounds.size.height);
- CGContextSetTextPosition(context, 0, ceilf(glyphRunToDraw.descent+self.contentEdgeInsets.bottom));
+ CGContextSetTextPosition(context, self.contentEdgeInsets.left, ceilf(glyphRunToDraw.descent+self.contentEdgeInsets.bottom));
[glyphRunToDraw drawInContext:context];
CGContextRestoreGState(context);
}
-
}
#pragma mark Drawing the Run
Please sign in to comment.
Something went wrong with that request. Please try again.