Ionic2 Background Image Is Resized When Keyboard Is Open

IONIC4 Background image is resized when keyboard is open

Worked with changing some attributes in my bg class:

.bg{
padding-bottom: 0 !important;
background-image: url('../../assets/lock.png') !important;
height: 100% auto !important;
background-repeat: no-repeat;
background-image: cover !important;
background-size: cover !important;
background-position: center;
position: fixed;
}

Ionic 4: Background resize opening keyboard

This will disable the scroll:

ion-content {
--overflow: hidden;
}

Android White Background when keyboard fades away

In AndroidManifest.xml file try to set windowSoftInputMode attribute to adjustNothing:

android:windowSoftInputMode="adjustNothing"

It worked for my Ionic project, avoiding the resize of Cordova webview when soft keyboard is on.



Related Topics



Leave a reply



Submit