Skip to content

issue(prompt alert): Should show in middle of the screen as per native alert #10187

Closed
@dylanvdmerwe

Description

@dylanvdmerwe

Ionic version: (check one with "x")
[ ] 1.x
[x] 2.x

I'm submitting a ... (check one with "x")
[ ] bug report
[x] issue
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or http://ionicworldwide.herokuapp.com/

Current behavior:
A prompt alert on a large device like an iPad (on iOS) is being displayed at the top half of the screen:

image

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):

Cordova CLI: 6.5.0
Ionic Framework Version: 2.0.0
Ionic CLI Version: 2.2.1
Ionic App Lib Version: 2.2.0
Ionic App Scripts Version: 1.0.0
ios-deploy version: 1.9.0
ios-sim version: 5.0.10
OS: macOS Sierra
Node Version: v6.9.1
Xcode version: Xcode 8.2.1 Build version 8C1002

Metadata

Metadata

Assignees

No one assigned

    Labels

    ionitron: v3moves the issue to the ionic-v3 repository

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions