@@ -646,10 +646,10 @@ static void MergeBorderWidthValues(NSMutableDictionary* dict,
646
646
if (!manager.isValid ) {
647
647
return -1 ;
648
648
}
649
- CGRect frame = CGRectMake (isnan (WXRoundPixelValue (left))?0 :WXRoundPixelValue (left),
650
- isnan (WXRoundPixelValue (top))?0 :WXRoundPixelValue (top),
651
- isnan (WXRoundPixelValue (width))?0 :WXRoundPixelValue (width),
652
- isnan (WXRoundPixelValue (height))?0 :WXRoundPixelValue (height));
649
+ CGRect frame = CGRectMake (isnan (WXCeilPixelValue (left))?0 :WXCeilPixelValue (left),
650
+ isnan (WXCeilPixelValue (top))?0 :WXCeilPixelValue (top),
651
+ isnan (WXCeilPixelValue (width))?0 :WXCeilPixelValue (width),
652
+ isnan (WXCeilPixelValue (height))?0 :WXCeilPixelValue (height));
653
653
[manager layoutComponent: component frame: frame isRTL: isRTL innerMainSize: renderObject->getLargestMainSize ()];
654
654
655
655
page->CallBridgeTime (getCurrentTime () - startTime);
@@ -1551,10 +1551,10 @@ + (void)_traverseTree:(WeexCore::RenderObject *)render index:(int)index pageId:(
1551
1551
float width = render->getLayoutWidth ();
1552
1552
BOOL isRTL = render->getLayoutDirectionFromPathNode () == WeexCore::kDirectionRTL ;
1553
1553
WXComponentManager* manager = [WXSDKManager instanceForID: ns_instanceId].componentManager ;
1554
- CGRect frame = CGRectMake (isnan (WXRoundPixelValue (left))?0 :WXRoundPixelValue (left),
1555
- isnan (WXRoundPixelValue (top))?0 :WXRoundPixelValue (top),
1556
- isnan (WXRoundPixelValue (width))?0 :WXRoundPixelValue (width),
1557
- isnan (WXRoundPixelValue (height))?0 :WXRoundPixelValue (height));
1554
+ CGRect frame = CGRectMake (isnan (WXCeilPixelValue (left))?0 :WXCeilPixelValue (left),
1555
+ isnan (WXCeilPixelValue (top))?0 :WXCeilPixelValue (top),
1556
+ isnan (WXCeilPixelValue (width))?0 :WXCeilPixelValue (width),
1557
+ isnan (WXCeilPixelValue (height))?0 :WXCeilPixelValue (height));
1558
1558
[manager layoutComponent: component frame: frame isRTL: isRTL innerMainSize: render->getLargestMainSize ()];
1559
1559
}
1560
1560
render->setHasNewLayout (false );
0 commit comments