Skip to content

Commit 9002e35

Browse files
committed
When lockSquare enabled, clicking the reset button no longer resets the aspect ratio.
1 parent 9d4c227 commit 9002e35

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/imagecropper.ios.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ export class ImageCropper {
108108
viewController.aspectRatioPreset = TOCropViewControllerAspectRatioPreset.PresetSquare;
109109
viewController.aspectRatioLockEnabled = true; // The crop box is locked to the aspect ratio and can't be resized away from it
110110
viewController.aspectRatioPickerButtonHidden = true;
111+
viewController.resetAspectRatioEnabled = false;
111112
}
112113
page.presentViewControllerAnimatedCompletion(viewController, true, function () {
113114
if (_options) {

0 commit comments

Comments
 (0)