Skip to content

bug: Keyboard pushes content up and making a scrollable view. (2.0.0-alpha.54) #5302

Closed
@Abdiliban

Description

@Abdiliban

When I press the input and the keyboard pops up, it pushes my content up and create a scrollable view.

here is the code:

<ion-content class="auth-view">
  <div id="loginForm">
    <img src="http://orig14.deviantart.net/1509/f/2012/053/2/0/iseeyou_gaming_logo_by_masfx-d4qly3z.png"/>
    <ion-list>
      <ion-item>
        <ion-label fixed><ion-icon name="person"></ion-icon></ion-label>
        <ion-input type="text" placeholder="Användarnamn" [{ngModel}]="username"></ion-input>
      </ion-item>
      <ion-item>
        <ion-label fixed><ion-icon name="lock"></ion-icon></ion-label>
        <ion-input type="password" placeholder="Lösenord" [{ngModel}]="password"></ion-input>
      </ion-item>
    </ion-list>
  </div>
</ion-content>

Notice that after i pressed the input, it got focused and pushed my content up so now i have a larger height on the app.

stage1

stage2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions