From 9002e35cc6295da8456e03250e7407b82bd16f9e Mon Sep 17 00:00:00 2001 From: Ericky Dos Santos Date: Wed, 16 May 2018 12:11:43 -0400 Subject: [PATCH] When lockSquare enabled, clicking the reset button no longer resets the aspect ratio. --- src/imagecropper.ios.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/imagecropper.ios.ts b/src/imagecropper.ios.ts index aa02be2..e2b27a8 100644 --- a/src/imagecropper.ios.ts +++ b/src/imagecropper.ios.ts @@ -108,6 +108,7 @@ export class ImageCropper { viewController.aspectRatioPreset = TOCropViewControllerAspectRatioPreset.PresetSquare; viewController.aspectRatioLockEnabled = true; // The crop box is locked to the aspect ratio and can't be resized away from it viewController.aspectRatioPickerButtonHidden = true; + viewController.resetAspectRatioEnabled = false; } page.presentViewControllerAnimatedCompletion(viewController, true, function () { if (_options) {