Skip to content

Commit

Permalink
Merge pull request #1 from seanbarney/hotfix/webviewcontroller
Browse files Browse the repository at this point in the history
Fixed SimpleAuthWebViewController issue
  • Loading branch information
davidseek authored May 21, 2018
2 parents b310cff + 6117eac commit 9d5a1bc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion SimpleAuthInstagram/ios/SimpleAuthWebViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ @implementation SimpleAuthWebViewController {
- (void)viewDidLoad {
[super viewDidLoad];

self.webView.frame = self.view.bounds;
CGFloat bottomY = CGRectGetMaxY(self.navigationController.navigationBar.frame) + [UIApplication sharedApplication].statusBarFrame.size.height;

self.webView.frame = CGRectMake(self.view.bounds.origin.x, bottomY, self.view.bounds.size.width, self.view.bounds.size.height);
[self.view addSubview:self.webView];
}

Expand Down

0 comments on commit 9d5a1bc

Please sign in to comment.