[iOS] Document picker has overlapping icons on iPad
authorjhoneycutt@apple.com <jhoneycutt@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 10 Jul 2015 16:33:47 +0000 (16:33 +0000)
committerjhoneycutt@apple.com <jhoneycutt@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 10 Jul 2015 16:33:47 +0000 (16:33 +0000)
https://bugs.webkit.org/show_bug.cgi?id=146808
<rdar://problem/21251875>

Reviewed by Sam Weinig.

* UIProcess/ios/forms/WKFileUploadPanel.mm:
(-[WKFileUploadPanel documentMenu:didPickDocumentPicker:]):
Don't show this UI as a popover on iPad; the default is a full screen
form sheet.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@186678 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebKit2/ChangeLog
Source/WebKit2/UIProcess/ios/forms/WKFileUploadPanel.mm

index 42e6cbc..674adcb 100644 (file)
@@ -1,3 +1,16 @@
+2015-07-09  Jon Honeycutt  <jhoneycutt@apple.com>
+
+        [iOS] Document picker has overlapping icons on iPad
+        https://bugs.webkit.org/show_bug.cgi?id=146808
+        <rdar://problem/21251875>
+
+        Reviewed by Sam Weinig.
+
+        * UIProcess/ios/forms/WKFileUploadPanel.mm:
+        (-[WKFileUploadPanel documentMenu:didPickDocumentPicker:]):
+        Don't show this UI as a popover on iPad; the default is a full screen
+        form sheet.
+
 2015-07-09  Dan Bernstein  <mitz@apple.com>
 
         WebKit2 part of Track and expose policies for external URL schemes and App Links separately
index 78fa3c3..754f467 100644 (file)
@@ -603,9 +603,7 @@ static NSArray *UTIsForMIMETypes(NSArray *mimeTypes)
 - (void)documentMenu:(UIDocumentMenuViewController *)documentMenu didPickDocumentPicker:(UIDocumentPickerViewController *)documentPicker
 {
     documentPicker.delegate = self;
-    documentPicker.modalPresentationStyle = UIModalPresentationFullScreen;
-
-    [self _presentForCurrentInterfaceIdiom:documentPicker];
+    [self _presentFullscreenViewController:documentPicker animated:YES];
 }
 
 - (void)documentMenuWasCancelled:(UIDocumentMenuViewController *)documentMenu