Explorar o código

about view: add missing autoresizing masks

(cherry picked from commit 44ec83df17d5f27d5157006048fe9428ff2501b0)
Felix Paul Kühne %!s(int64=10) %!d(string=hai) anos
pai
achega
a74448314d
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      Sources/VLCAboutViewController.m

+ 3 - 1
Sources/VLCAboutViewController.m

@@ -28,13 +28,15 @@
 {
     self.view = [[UIView alloc] initWithFrame:[UIScreen mainScreen].bounds];
     self.view.backgroundColor = [UIColor VLCDarkBackgroundColor];
+    self.view.autoresizingMask = UIViewAutoresizingFlexibleHeight | UIViewAutoresizingFlexibleWidth;
 
-    _webView = [[UIWebView alloc] initWithFrame:[UIScreen mainScreen].bounds];
+    _webView = [[UIWebView alloc] initWithFrame:self.view.frame];
     _webView.clipsToBounds = YES;
     _webView.delegate = self;
     _webView.backgroundColor = [UIColor clearColor];
     _webView.opaque = NO;
     _webView.scrollView.indicatorStyle = UIScrollViewIndicatorStyleWhite;
+    _webView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
     [self.view addSubview:_webView];
 }