Skip to content

Commit

Permalink
Merge pull request #8 from l4u/cache
Browse files Browse the repository at this point in the history
Reset cached max height on data reload Fixes #7
  • Loading branch information
terryworona committed Jan 2, 2014
2 parents 84d9c0f + d142629 commit 6f185f9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Classes/JBBarChartView.m
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ - (void)dealloc

- (void)reloadData
{
// reset cached max height
_cachedMaxHeight = kJBBarChartViewUndefinedMaxHeight;

/*
* The data collection holds all position information:
* constructed via datasource and delegate functions
Expand Down
3 changes: 3 additions & 0 deletions Classes/JBLineChartView.m
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,9 @@ - (id)initWithFrame:(CGRect)frame

- (void)reloadData
{
// reset cached max height
_cachedMaxHeight = kJBLineChartViewUndefinedMaxHeight;

/*
* Subview rectangle calculations
*/
Expand Down

0 comments on commit 6f185f9

Please sign in to comment.