作者 周泳恩

Fix. Ios width

@@ -836,7 +836,7 @@ RCT_EXPORT_METHOD(openCropper:(NSDictionary *)options @@ -836,7 +836,7 @@ RCT_EXPORT_METHOD(openCropper:(NSDictionary *)options
836 // Returns a custom path for the mask. 836 // Returns a custom path for the mask.
837 - (UIBezierPath *)imageCropViewControllerCustomMaskPath: 837 - (UIBezierPath *)imageCropViewControllerCustomMaskPath:
838 (RSKImageCropViewController *)controller { 838 (RSKImageCropViewController *)controller {
839 - CGRect rect = [self scaleRect:controller]; 839 + CGRect rect = controller.maskRect;
840 UIBezierPath *path = [UIBezierPath bezierPathWithRoundedRect:rect 840 UIBezierPath *path = [UIBezierPath bezierPathWithRoundedRect:rect
841 byRoundingCorners:UIRectCornerAllCorners 841 byRoundingCorners:UIRectCornerAllCorners
842 cornerRadii:CGSizeMake(0, 0)]; 842 cornerRadii:CGSizeMake(0, 0)];
@@ -846,7 +846,7 @@ RCT_EXPORT_METHOD(openCropper:(NSDictionary *)options @@ -846,7 +846,7 @@ RCT_EXPORT_METHOD(openCropper:(NSDictionary *)options
846 // Returns a custom rect in which the image can be moved. 846 // Returns a custom rect in which the image can be moved.
847 - (CGRect)imageCropViewControllerCustomMovementRect: 847 - (CGRect)imageCropViewControllerCustomMovementRect:
848 (RSKImageCropViewController *)controller { 848 (RSKImageCropViewController *)controller {
849 - return [self scaleRect:controller]; 849 + return controller.maskRect;
850 } 850 }
851 851
852 #pragma mark - CropFinishDelegate 852 #pragma mark - CropFinishDelegate