Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Owner should do view sizing. Auto resizing.

  • Loading branch information...
commit b9fe10b543a094f8215759079daf480e34886ce8 1 parent a0e4c47
@drpancake authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  JPCanvasViewController.m
View
3  JPCanvasViewController.m
@@ -66,7 +66,8 @@ - (void)webView:(WebView *)sender didFinishLoadForFrame:(WebFrame *)frame
- (UIWebView *)webView
{
if (_webView == nil) {
- _webView = [[UIWebView alloc] initWithFrame:self.parentViewController.view.bounds];
+ _webView = [[UIWebView alloc] initWithFrame:CGRectZero];
+ _webView.autoresizingMask = UIViewAutoresizingFlexibleWidth|UIViewAutoresizingFlexibleHeight;
_webView.delegate = self;
[_webView loadHTMLString:JPCANVAS_BASE_HTML baseURL:[NSURL URLWithString:@""]];
}
Please sign in to comment.
Something went wrong with that request. Please try again.