diff --git a/ZCAnimatedLabel/ZCAnimatedLabel/ZCCoreTextLayout.m b/ZCAnimatedLabel/ZCAnimatedLabel/ZCCoreTextLayout.m index 96b3ff3..3a71df2 100644 --- a/ZCAnimatedLabel/ZCAnimatedLabel/ZCCoreTextLayout.m +++ b/ZCAnimatedLabel/ZCAnimatedLabel/ZCCoreTextLayout.m @@ -118,7 +118,7 @@ - (void) layoutWithAttributedString: (NSAttributedString *) attributedString con self.estimatedSize = s; - frameRect = CGRectMake(0, 0, s.width, s.height); + frameRect = CGRectMake(0, 0, size.width, size.height); CGPathRef framePath = CGPathCreateWithRect(frameRect, NULL); ctFrame = CTFramesetterCreateFrame(framesetter, rangeAll, framePath, NULL); CGPathRelease(framePath);