Skip to content

Commit

Permalink
Merge pull request #2288 from srahim/timob-9016
Browse files Browse the repository at this point in the history
[TIMOB-9016]Clearing text on tableview searchbar causing rendering issues.
  • Loading branch information
Max Stepanov committed May 30, 2012
2 parents d4ca308 + 5bac547 commit d3c9767
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion iphone/Classes/TiUITableView.m
Original file line number Diff line number Diff line change
Expand Up @@ -982,7 +982,12 @@ - (void)updateSearchResultIndexes
{
if ([searchString length]==0) {
RELEASE_TO_NIL(searchResultIndexes);
return;

//Need to reload the tableview, as some of the cells might be reused as part
//of a previous search and as a result may not be visible on screen.
[tableview reloadData];

return;
}
NSEnumerator * searchResultIndexEnumerator;
if(searchResultIndexes == nil)
Expand Down

0 comments on commit d3c9767

Please sign in to comment.