Skip to content

Commit

Permalink
Merge pull request #4100 from mstepanov/timob-13406-31x
Browse files Browse the repository at this point in the history
[TIMOB-13406] iOS: ListView: Listview on iOS 5.0+ shows black bars in some items
  • Loading branch information
vishalduggal committed Apr 5, 2013
2 parents 88bbe98 + c76cd15 commit fccebd0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions iphone/Classes/TiUIListItem.m
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ - (void)setDataItem:(NSDictionary *)dataItem

id backgroundColorValue = [properties objectForKey:@"backgroundColor"];
if ([self shouldUpdateValue:backgroundColorValue forKeyPath:@"detailTextLabel.backgroundColor"]) {
UIColor *backgroundColor = backgroundColorValue != nil ? [[TiUtils colorValue:backgroundColorValue] _color] : nil;
UIColor *backgroundColor = backgroundColorValue != nil ? [[TiUtils colorValue:backgroundColorValue] _color] : [UIColor clearColor];
if (backgroundColor != nil) {
[self recordChangeValue:backgroundColorValue forKeyPath:@"detailTextLabel.backgroundColor" withBlock:^{
[self.detailTextLabel setBackgroundColor:backgroundColor];
Expand Down Expand Up @@ -170,7 +170,7 @@ - (void)setDataItem:(NSDictionary *)dataItem

backgroundColorValue = [properties objectForKey:@"backgroundColor"];
if ([self shouldUpdateValue:backgroundColorValue forKeyPath:@"textLabel.backgroundColor"]) {
UIColor *backgroundColor = backgroundColorValue != nil ? [[TiUtils colorValue:backgroundColorValue] _color] : nil;
UIColor *backgroundColor = backgroundColorValue != nil ? [[TiUtils colorValue:backgroundColorValue] _color] : [UIColor clearColor];
if (backgroundColor != nil) {
[self recordChangeValue:backgroundColorValue forKeyPath:@"textLabel.backgroundColor" withBlock:^{
[self.textLabel setBackgroundColor:backgroundColor];
Expand Down Expand Up @@ -227,7 +227,7 @@ - (void)setDataItem:(NSDictionary *)dataItem
}
id backgroundColorValue = [properties objectForKey:@"backgroundColor"];
if ([self shouldUpdateValue:backgroundColorValue forKeyPath:@"contentView.backgroundColor"]) {
UIColor *backgroundColor = backgroundColorValue != nil ? [[TiUtils colorValue:backgroundColorValue] _color] : nil;
UIColor *backgroundColor = backgroundColorValue != nil ? [[TiUtils colorValue:backgroundColorValue] _color] : [UIColor clearColor];
if (backgroundColor != nil) {
[self recordChangeValue:backgroundColorValue forKeyPath:@"contentView.backgroundColor" withBlock:^{
self.contentView.backgroundColor = backgroundColor;
Expand Down

0 comments on commit fccebd0

Please sign in to comment.