mirror of
https://gitee.com/shuto/cordova-plugin-file-opener2.git
synced 2025-01-31 12:02:49 +08:00
Fix CGRectMake parameter
This commit is contained in:
parent
3f01a95c73
commit
ad3166a3e6
@ -42,9 +42,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
CGRect rect;
|
||||
if (3 >= [command.arguments count]) {
|
||||
NSArray *positionValues = command.arguments[2];
|
||||
rect = CGRectMake([0,0,
|
||||
[[positionValues objectAtIndex:0] floatValue],
|
||||
[[positionValues objectAtIndex:1] floatValue]);
|
||||
rect = CGRectMake(0,0,[[positionValues objectAtIndex:0] floatValue],[[positionValues objectAtIndex:1] floatValue]);
|
||||
} else {
|
||||
rect = CGRectMake(0, 0, 1000.0f, 150.0f);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user