From f287bbd7ba6469ce93650623433d98820bb8418e Mon Sep 17 00:00:00 2001 From: polonez Date: Tue, 2 May 2017 10:28:20 +0900 Subject: [PATCH] Fix topRightCornerView.frame.origin --- CropViewController/CropRectView.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CropViewController/CropRectView.swift b/CropViewController/CropRectView.swift index 0d3a641..720469e 100644 --- a/CropViewController/CropRectView.swift +++ b/CropViewController/CropRectView.swift @@ -129,7 +129,7 @@ class CropRectView: UIView, ResizeControlDelegate { super.layoutSubviews() topLeftCornerView.frame.origin = CGPoint(x: topLeftCornerView.bounds.width / -2.0, y: topLeftCornerView.bounds.height / -2.0) - topRightCornerView.frame.origin = CGPoint(x: bounds.width - topRightCornerView.bounds.width - 2.0, y: topRightCornerView.bounds.height / -2.0) + topRightCornerView.frame.origin = CGPoint(x: bounds.width - topRightCornerView.bounds.width / 2.0, y: topRightCornerView.bounds.height / -2.0) bottomLeftCornerView.frame.origin = CGPoint(x: bottomLeftCornerView.bounds.width / -2.0, y: bounds.height - bottomLeftCornerView.bounds.height / 2.0) bottomRightCornerView.frame.origin = CGPoint(x: bounds.width - bottomRightCornerView.bounds.width / 2.0, y: bounds.height - bottomRightCornerView.bounds.height / 2.0)