Permalink
Browse files

Call setNeedsDisaply in [BNPieChart setFrame:].

I forgot about this.  If the frame is changed and we don't call this,
the view will be resized as a bitmap, and it looks better if we redraw
it.
  • Loading branch information...
1 parent fc61a91 commit 1f30cfc9321f903c96fd6e21c6ddc0a82f4ee9bc @tylerneylon committed Apr 14, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 BNPieChart.m
View
@@ -89,6 +89,7 @@ - (void)setFrame:(CGRect)frame {
centerY = frame.size.height / 2.0;
radius = centerX < centerY ? centerX : centerY;
radius *= kRadiusPortion;
+ [self setNeedsDisplay];
}
- (void)addSlicePortion:(float)slicePortion withName:(NSString *)name {

0 comments on commit 1f30cfc

Please sign in to comment.