简体   繁体   English

弹出键盘时,离子输入被上推

[英]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? 我在ion Devapp上运行我的应用程序,并且一切似乎都运行良好,但是当我运行“ ionic cordova run android”时,每次键盘弹出时,ion输入都会更改其位置。

I am working with ionic 4. 我正在使用离子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. 在AndroidManifest.xml中。

Hope this helps someone! 希望这对某人有帮助!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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