问题
I build ionic 3 app. I have inputs field and when I press on them to begin to type anything the screen changed..
before
when I press on any input field the screen changed(it's test also in real device)
回答1:
You can fix this problem by adding this style to app.scss:
ion-grid {
min-height: 100%;
}
The keyboard resizes Ionic's grid system if you didn't define its minimum height.
回答2:
Take a look at the native keyboard to prevent the keyboard from pushing things up.
keyboard.disableScroll(bool);
Ionic Native Keyboard Documentation
来源:https://stackoverflow.com/questions/46436894/ionic-3-keyboard-pushes-the-whole-screen-up