简体   繁体   中英

ionic input is pushed up when keyboard pops up

I am running my application on ion Devapp and everything seem to be working fine, but when I run it "ionic cordova run android', the ion input changes its position every-time the keyboard pops up. any help please?

I am working with ionic 4.

  <ion-row class="search-row">
    <ion-searchbar animated [(ngModel)]="searchText" mode="ios">
    </ion-searchbar>
  </ion-row>

I found the answer right after I posted the question, the solution is to change to

android:windowSoftInputMode="adjustPan" 

in the AndroidManifest.xml.

Hope this helps someone!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM