Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ZCAnimatedLabel/ZCAnimatedLabel/ZCCoreTextLayout.m
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down