I am using Ionic v3.10, below is my login HTML code
<ion-content>
<ion-grid>
<ion-row>
<ion-col col-12>
<ion-list>
<ion-card>
<ion-card-header>
<ion-img style="background-color: transparent; display: block; margin: auto;" height="100" width="100" src="assets/logo.png" alt="iBin"></ion-img>
</ion-card-header>
<ion-card-content>
<ion-item ion-fixed>
<ion-label floating>Username</ion-label>
<ion-input type="text"></ion-input>
</ion-item>
<ion-item ion-fixed>
<ion-label floating>Password</ion-label>
<ion-input type="password"></ion-input>
</ion-item>
<ion-item>
<!-- <button ion-button color="secondary" outline padding >Login</button> -->
<button ion-button color="secondary" outline padding block round (click)="login()">Login</button>
</ion-item>
</ion-card-content>
</ion-card>
</ion-list>
</ion-col>
</ion-row>
</ion-grid>
</ion-content>
The scss i have applied is
page-home
{
ion-grid, ion-card-content
{
min-height: 100%;
}
}
The problem with this code this that whenever I run the command ionic serve -l
it renders the 3 basic views i.e ios, android, and windows. There are two input boxes one is for username and 2nd is for the password. Whenever I click on the input box in the android view the whole division shifts up.
But when I do the click in windows or ios windows it works all fine. I even tried applying ion-fixed
to the ion-content
but then it makes the whole ui shrinked to 50%
What might be the issue.
Can you try this and let us know?
.html
.scss