Skip to content
This repository has been archived by the owner on Jun 3, 2021. It is now read-only.

Commit

Permalink
[iOS] fix backgroundColor bug when modify div color
Browse files Browse the repository at this point in the history
  • Loading branch information
jianhan-he committed Dec 20, 2018
1 parent 8472133 commit 481d811
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ios/sdk/WeexSDK/Sources/View/WXComponent+ViewManagement.mm
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ - (void)_resetStyles:(NSArray *)styles
[self setNeedsDisplay];
}
if (styles && [styles containsObject:@"backgroundImage"]) {
_backgroundImage = @"linear-gradient(to left,rgba(255,255,255,0),rgba(255,255,255,0))"; // if backgroundImage is nil, give defalut color value.
_backgroundImage = nil;
[self setGradientLayer];
}

Expand Down

0 comments on commit 481d811

Please sign in to comment.