瀏覽代碼

about view: add missing autoresizing masks

(cherry picked from commit 44ec83df17d5f27d5157006048fe9428ff2501b0)
Felix Paul Kühne 10 年之前
父節點
當前提交
a74448314d
共有 1 個文件被更改,包括 3 次插入1 次删除
  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];
 }