Skip to content
This repository has been archived by the owner on Nov 1, 2017. It is now read-only.

Commit

Permalink
set the frame using the accessor so that it reset the CTFrame
Browse files Browse the repository at this point in the history
  • Loading branch information
joshaber committed Jan 28, 2012
1 parent 6cb5007 commit 0b16e61
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/UIKit/TUITextRenderer.m
Expand Up @@ -74,7 +74,8 @@ - (void)_buildFrameWithEffectiveFrame:(CGRect)effectiveFrame
{
[self _resetFrame];

_ct_path = CGPathCreateWithRect(effectiveFrame, NULL);
_ct_path = CGPathCreateMutable();
CGPathAddRect((CGMutablePathRef)_ct_path, NULL, effectiveFrame);
_ct_frame = CTFramesetterCreateFrame(_ct_framesetter, CFRangeMake(0, 0), _ct_path, NULL);
}

Expand Down Expand Up @@ -343,7 +344,7 @@ - (CGSize)sizeConstrainedToWidth:(CGFloat)width

CGSize size = [self size];

frame = oldFrame;
self.frame = oldFrame;

return size;
}
Expand Down

0 comments on commit 0b16e61

Please sign in to comment.