Skip to content

Commit 14172ee

Browse files
committed
Fix autoresizing mask of web views.
1 parent 2ca498b commit 14172ee

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

WebAppWrapper/RWebViewController.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,8 @@ - (void)viewDidLoad
202202
self.webView = [[UIWebView alloc] initWithFrame:self.view.bounds];
203203
self.webView.delegate = self;
204204
self.webView.scalesPageToFit = YES;
205+
self.webView.autoresizingMask = (UIViewAutoresizingFlexibleWidth |
206+
UIViewAutoresizingFlexibleHeight);
205207
[self.view addSubview:self.webView];
206208
}
207209

WebAppWrapper/RootViewController.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,8 @@ - (void)viewDidLoad
135135
self.webView = [[UIWebView alloc] initWithFrame:self.view.bounds];
136136
self.webView.delegate = self;
137137
self.webView.scalesPageToFit = YES;
138+
self.webView.autoresizingMask = (UIViewAutoresizingFlexibleWidth |
139+
UIViewAutoresizingFlexibleHeight);
138140
[self.view addSubview:self.webView];
139141
}
140142

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy