File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -109,6 +109,7 @@ class TOCropViewControllerDelegateImpl extends NSObject {
109
109
export class ImageCropper {
110
110
public show ( image :imageSource . ImageSource , options ?:OptionsCommon ) :Thenable < Result > {
111
111
// console.log("ImageCropper.show");
112
+ let _that = this ;
112
113
return new Promise < Result > ( ( resolve , reject ) => {
113
114
_options = options ;
114
115
if ( image . ios ) {
@@ -124,7 +125,7 @@ export class ImageCropper{
124
125
page . presentViewControllerAnimatedCompletion ( viewController , true , function ( ) {
125
126
//Set Fixed Crop Size
126
127
if ( _options && _options . width && _options . height ) {
127
- var gcd = this . _gcd ( _options . width , _options . height ) ;
128
+ var gcd = _that . _gcd ( _options . width , _options . height ) ;
128
129
129
130
viewController . toolbar . clampButtonHidden = true ;
130
131
// viewController.toolbar.setNeedsLayout();
You can’t perform that action at this time.
0 commit comments