mirror of
https://github.com/Tencent/Hippy.git
synced 2026-10-29 14:10:47 +08:00
fix(ios): 1px gap in gradient background under special circumstances (#4246)
This commit is contained in:
@@ -367,7 +367,8 @@ void NativeRenderBoarderColorsRelease(HippyBorderColors c) {
|
||||
});
|
||||
return NO;
|
||||
} else if (self.gradientObject) {
|
||||
CGSize size = theFrame.size;
|
||||
CGSize size = CGSizeMake(HippyRoundPixelValue(theFrame.size.width),
|
||||
HippyRoundPixelValue(theFrame.size.height));
|
||||
if (0 >= size.width || 0 >= size.height) {
|
||||
contentBlock(nil);
|
||||
return YES;
|
||||
|
||||
Reference in New Issue
Block a user