diff --git a/src/ios/FileOpener2.m b/src/ios/FileOpener2.m index 0c93a61..8538ac0 100644 --- a/src/ios/FileOpener2.m +++ b/src/ios/FileOpener2.m @@ -91,9 +91,9 @@ NSString* callbackId = nil; NSArray *positionValues = [command.arguments objectAtIndex:3]; if (![positionValues isEqual:[NSNull null]] && [positionValues count] >= 2) { - rect = CGRectMake(0, 0, [[positionValues objectAtIndex:0] floatValue], [[positionValues objectAtIndex:1] floatValue]); - } else { - rect = CGRectMake(0, 0, 0, 0); + rect = CGRectMake(0, 0, [[positionValues objectAtIndex:0] floatValue], [[positionValues objectAtIndex:1] floatValue]); + } else { + rect = CGRectMake(0, 0, 0, 0); } } else { rect = CGRectMake(0, 0, cont.view.bounds.size.width, cont.view.bounds.size.height);