Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to disable --keyboard-offset in ionic 4?

I'm playing around with Ionic and I'm wondering is there's a way to disable the offset Ionic adds to the page when typing on mobile with --keyboard-offset.

Right now the offset messes up my UI, I would like to disable it completely if possible.

like image 459
IvanHid Avatar asked Nov 27 '25 12:11

IvanHid


1 Answers

I was in the same problems, a simple fixe I come up with is to put this to override --keyboard-offset properties on each pages:

ion-content{
   --keyboard-offset: 0 !important;
}
like image 199
Nicolas Thierry Avatar answered Nov 29 '25 21:11

Nicolas Thierry



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!