Skip to content
This repository was archived by the owner on May 4, 2022. It is now read-only.
This repository was archived by the owner on May 4, 2022. It is now read-only.

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

Open

Description

@ionitron-bot

Original issue by @dylanvdmerwe on 2017-01-26T16:18:54Z

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

Activity

  1. kareemsalah227 commented on Feb 15, 2019

    @kareemsalah227

    No solution for this yet? I'm running into the same situation.

  2. azilenpulkit commented on Mar 6, 2019

    @azilenpulkit

    Ionic v3.
    I'm facing the same issue with alert box.
    It only happens when I put text box in the alert.
    Alert box appears on the top even in regular devices like iPhones.
    It works fine when I make build for android.
    Checkbox, radio button etc works fine and alert box appears in the middle.
    Can anyone please tell me why?
    Is this anything to do with Ionic v3?

  3. azilenpulkit commented on Mar 6, 2019

    @azilenpulkit

    Ionic v3. It only happens when I put text box in the alert. Alert box appears on the top in regular devices like iPhones. It works fine when I build for android. Checkbox, radio button etc works fine and alert box appears in the middle. Can anyone please tell me why? Is this anything to do with Ionic v3?

    I tried to apply cssClass to override the position. But, then screen flickers when user tries to open the keyboard. So, I tried to keep the text box in the alert unfocused by keeping the keyboard closed when alert appears. Still no luck.

    Please refer the image for the same.
    issue screen-533

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions