Skip to content

Commit

Permalink
Add resize method (bug fix)
Browse files Browse the repository at this point in the history
  • Loading branch information
appfeel committed Jun 25, 2015
1 parent 825b865 commit 372cae0
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/ios/OverAppBrowser.m
Original file line number Diff line number Diff line change
Expand Up @@ -106,21 +106,21 @@ - (void)resize:(CDVInvokedUrlCommand *)command {
self.callbackId = command.callbackId;
NSUInteger argc = [arguments count];

if (argc < 4) { // at a minimum we need x origin, y origin and width...
if (argc < 3) { // at a minimum we need x origin, y origin and width...
return;
}

if (self.overWebView != NULL) {
return;//already created, don't need to create it again
if (self.overWebView == NULL) {
return; // not yet created
}

CGFloat originx,originy,width;
CGFloat height = 30;
originx = [[arguments objectAtIndex:1] floatValue];
originy = [[arguments objectAtIndex:2] floatValue];
width = [[arguments objectAtIndex:3] floatValue];
originx = [[arguments objectAtIndex:0] floatValue];
originy = [[arguments objectAtIndex:1] floatValue];
width = [[arguments objectAtIndex:2] floatValue];
if (argc > 3) {
height = [[arguments objectAtIndex:4] floatValue];
height = [[arguments objectAtIndex:3] floatValue];
}

CGRect viewRect = CGRectMake(
Expand Down

0 comments on commit 372cae0

Please sign in to comment.