diff --git a/ios/sdk/WeexSDK/Sources/Display/WXRoundedRect.mm b/ios/sdk/WeexSDK/Sources/Display/WXRoundedRect.mm index 7636d9d0be..c57baa9542 100644 --- a/ios/sdk/WeexSDK/Sources/Display/WXRoundedRect.mm +++ b/ios/sdk/WeexSDK/Sources/Display/WXRoundedRect.mm @@ -76,12 +76,17 @@ - (instancetype)initWithRect:(CGRect)rect if (self = [super init]) { _rect = rect; _radii = [[WXRadii alloc] initWithTopLeft:topLeft topRight:topRight bottomLeft:bottomLeft bottomRight:bottomRight]; - [_radii scale:[self radiiConstraintScaleFactor]]; + //[_radii scale:[self radiiConstraintScaleFactor]]; } return self; } +/* + We don't do this scaling because of this demo: http://dotwe.org/vue/594d43b10d8fb9847d8122bbd429f48b + The width of the animating object is zero and radiiConstraintScaleFactor generated 0 factor + which causes that no corner-radius is showing. + - (float)radiiConstraintScaleFactor { // Constrain corner radii using CSS3 rules: @@ -116,5 +121,6 @@ - (float)radiiConstraintScaleFactor WXAssert(factor <= 1, @"Wrong factor for radii constraint scale:%f", factor); return factor; } +*/ @end