Skip to content

Commit

Permalink
Merge pull request #5067 from vishalduggal/timob-15901
Browse files Browse the repository at this point in the history
[TIMOB-15901] Always call manageCache when refreshing scollview bounds
  • Loading branch information
srahim committed Dec 5, 2013
2 parents 065306f + e667634 commit b48f5da
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions iphone/Classes/TiUIScrollableView.m
Original file line number Diff line number Diff line change
Expand Up @@ -319,19 +319,13 @@ -(void)refreshScrollView:(CGRect)visibleBounds readd:(BOOL)readd
}
}

if (page==0 || readd)
{
[self manageCache:page];
}
[self manageCache:page];

CGRect contentBounds;
contentBounds.origin.x = viewBounds.origin.x;
contentBounds.origin.y = viewBounds.origin.y;
contentBounds.size.width = viewBounds.size.width;
contentBounds.size.height = viewBounds.size.height-(showPageControl ? pageControlHeight : 0);
contentBounds.size.width *= viewsCount;
CGSize contentBounds;
contentBounds.width = viewBounds.size.width*viewsCount;
contentBounds.height = viewBounds.size.height-(showPageControl ? pageControlHeight : 0);

[sv setContentSize:contentBounds.size];
[sv setContentSize:contentBounds];
[sv setFrame:CGRectMake(0, 0, visibleBounds.size.width, visibleBounds.size.height)];
}

Expand Down

0 comments on commit b48f5da

Please sign in to comment.