You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
issue(prompt alert): Should show in middle of the screen as per native alert #10187
Current behavior:
A prompt alert on a large device like an iPad (on iOS) is being displayed at the top half of the screen:
I am assuming this is done because then the keyboard appears, the alert will be in the right place.
Expected behavior:
This needs to work more like a native app. The prompt to appear in the center of the screen. When the software keyboard opens up, the alert needs to slide into the correct position near the top of the screen.
Steps to reproduce:
Create any prompt alert on an iPad and note it's positioning.
Ionic info: (run ionic info from a terminal/cmd prompt and paste output below):
this alert has a text input and it's on a mobile device so we should align
the alert up high because we need to leave space for the virtual keboard
this also helps prevent the layout getting all messed up from
the browser trying to scroll the input into a safe area
The new keyboard fixes might fix this, as "alert padding when it has text-inputs #10187 (fix: new keyboard plugin)"
We are facing this issue as well. Not critical for us at the moment either, but it would be nice to see this resolved. This doesn't happen on Android for us, only iOS.
I know there is some reworking with the keyboard plugin coming out soon involving WKWebView, maybe this could be worked in with that?
This issue has been automatically identified as an Ionic 3 issue. We recently moved Ionic 3 to its own repository. I am moving this issue to the repository for Ionic 3. Please track this issue over there.
If I've made a mistake, and if this issue is still relevant to Ionic 4, please let the Ionic Framework team know!
Activity
fix(keyboard): big keyboard/input refactor
fix(keyboard): big keyboard/input refactor
AmitMY commentedon Jun 22, 2017
The reasoning: (here)
The new keyboard fixes might fix this, as "alert padding when it has text-inputs #10187 (fix: new keyboard plugin)"
shawnlan commentedon Jun 23, 2017
@AmitMY so we can have prompt alert in the middle of the screen now?
AmitMY commentedon Jun 23, 2017
@shawnlan
This needs device testing, which I can not do myself.
davorpeic commentedon Aug 8, 2017
This is also kinda annoying on iphone too, can we help testing something? I have latest keyboard plugin
AmitMY commentedon Aug 8, 2017
Currently it still is with a fixed top.
If you can change it for yourself, and it works well on an iPhone, let us know, and let’s make a PR of it.
davorpeic commentedon Aug 8, 2017
Ok, at this moment it is not critical, if I do something will let you know. thanks
Tyler-Darby commentedon Oct 11, 2017
We are facing this issue as well. Not critical for us at the moment either, but it would be nice to see this resolved. This doesn't happen on Android for us, only iOS.
I know there is some reworking with the keyboard plugin coming out soon involving WKWebView, maybe this could be worked in with that?
DorthyS commentedon Oct 31, 2017
I am having this issue too
vzts commentedon Jan 15, 2018
It happens in Android 6.0.1 as well, was kinda confused for a moment.
brunohnq commentedon Apr 29, 2018
I've override the "alert-top" class with the code below:
don't know about the main issues with keyboard though ... but this solved my problem...
ionitron-bot commentedon Nov 28, 2018
This issue has been automatically identified as an Ionic 3 issue. We recently moved Ionic 3 to its own repository. I am moving this issue to the repository for Ionic 3. Please track this issue over there.
If I've made a mistake, and if this issue is still relevant to Ionic 4, please let the Ionic Framework team know!
Thank you for using Ionic!
ionitron-bot commentedon Nov 28, 2018
Issue moved to: ionic-team/ionic-v3#171