Skip to content

Commit

Permalink
Merge pull request #57 from pala/master
Browse files Browse the repository at this point in the history
Fixed barView's frame.
  • Loading branch information
terryworona committed May 14, 2014
2 parents b1a3ebd + a6ea0c3 commit ac3744c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/JBBarChartView.m
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ - (void)reloadData

CGFloat height = [self normalizedHeightForRawHeight:[self.chartDataDictionary objectForKey:key]];
CGFloat extensionHeight = height > 0.0 ? kJBBarChartViewPopOffset : 0.0;
barView.frame = CGRectMake(xOffset, self.bounds.size.height - height - self.footerView.frame.size.height + self.headerPadding, [self barWidth], height + extensionHeight - self.headerPadding);
barView.frame = CGRectMake(xOffset, self.bounds.size.height - height - self.footerView.frame.size.height, [self barWidth], height + extensionHeight);
[mutableBarViews addObject:barView];

// Add new bar
Expand Down

0 comments on commit ac3744c

Please sign in to comment.