Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File picker in landscape mode is displayed in portrait mode #541

Closed
3 tasks done
KeySeeDev opened this issue Feb 19, 2019 · 5 comments
Closed
3 tasks done

File picker in landscape mode is displayed in portrait mode #541

KeySeeDev opened this issue Feb 19, 2019 · 5 comments
Labels

Comments

@KeySeeDev
Copy link

KeySeeDev commented Feb 19, 2019

Bug Report

Problem

When clicking an the file picker is opened.
The problem is with the landscape mode: the file picker is displayed in portrai mode.

What is expected to happen?

The file picker should be in landscape mode too, like the app.

Information

Not working even if the app is explicitly set in landscape mode trought preference.

Environment, Platform, Device

iPhones

Version information

Latest

Checklist

  • I searched for existing GitHub issues
  • I updated all Cordova tooling to most recent version
  • I included all the necessary information above
@KeySeeDev
Copy link
Author

Am I the only one having this problem? 😅

@janpio
Copy link
Member

janpio commented Mar 1, 2019

Is this reproducible in a new, plain Cordova app? A minimal reproduction repository would really help to debug and later fix this issue. More information on how to create one: https://github.com/apache/cordova-contribute/blob/master/create-reproduction.md

Please also provide the real versions of all the things you are using. "latest" changes, it is also unclear if this applies to everything or just cordova-ios.

@janpio janpio added the support label Mar 1, 2019
@KeySeeDev
Copy link
Author

Is this reproducible in a new, plain Cordova app? Sure, here we go.

create a blank cordova app: cordova create test com.iosfilepickerbug test
edit index.html and replace the body contents with <input type="file" />
rotate the device to landscape (+90 or -90) mode and then tap on the input.
At this point you should see the file picker... it will be in portrait mode,
so you will be forced to rotate the device.

Setting the orientation inside to config.xml does not work.

...applies to everything or just cordova-ios? Only on cordova iOS on iPhone

@janpio
Copy link
Member

janpio commented Mar 1, 2019

My last question was regarding this from your original issue:

Version information

Latest

But thanks for posting the reproduction steps, now someone can easily take a look.

@jcesarmobile
Copy link
Member

I've tried in different iOS versions (11.0.1, 12.0 and 12.2 simulators, and 12.3.1 real device) and I couldn't reproduce.

But even if I could, the picker is handled by the webview, not by cordova, so we won't be able to fix this kind of issues, you should report them to Apple.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants