fix(ios): 1px gap in gradient background under special circumstances (#4246)

This commit is contained in:
wwwcg
2025-04-03 15:24:32 +08:00
committed by wwwcg
parent 9c16179de3
commit 37bba9a6fc
@@ -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;