Skip to content

Commit

Permalink
Merge pull request #5455 from vishalduggal/timob-15226-32X
Browse files Browse the repository at this point in the history
[TIMOB-15526] (3_2_X) Ensure searchResultsTableView has opaque background
  • Loading branch information
pec1985 committed Mar 11, 2014
2 parents b78eb55 + 9cb9224 commit 900c73c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions iphone/Classes/TiUIListView.m
Original file line number Diff line number Diff line change
Expand Up @@ -1148,6 +1148,11 @@ - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
{
NSUInteger sectionCount = 0;

//TIMOB-15526
if (tableView != _tableView && tableView.backgroundColor == [UIColor clearColor]) {
tableView.backgroundColor = [UIColor whiteColor];
}

if (_searchResults != nil) {
sectionCount = [_searchResults count];
} else {
Expand Down
5 changes: 5 additions & 0 deletions iphone/Classes/TiUITableView.m
Original file line number Diff line number Diff line change
Expand Up @@ -2076,6 +2076,11 @@ - (UITableViewCell *)tableView:(UITableView *)ourTableView cellForRowAtIndexPath

- (NSInteger)numberOfSectionsInTableView:(UITableView *)ourTableView
{
//TIMOB-15526
if (ourTableView != tableview && ourTableView.backgroundColor == [UIColor clearColor]) {
ourTableView.backgroundColor = [UIColor whiteColor];
}

RETURN_IF_SEARCH_TABLE_VIEW(1);
// One quirk of UITableView is that it really hates having 0 sections. Instead, supply 1 section, no rows.
int result = [(TiUITableViewProxy *)[self proxy] sectionCount];
Expand Down

0 comments on commit 900c73c

Please sign in to comment.