Input focus scrolls wrongly

I have several inputs in my app that when focused, make the screen scroll in an unexpected way.

Basically what’s happening is that when the input is focused and the keyboard appears, the whole screen is scrolled and the input goes offscreen.

In android, if I type something it then scrolls to the right place. I can reproduce the bug in ionic-lab but typing does not make it right.

*In ionic-lab this only happens in the android platform.

Solved the problem with the following code:

        IonicModule.forRoot(MyApp, {
            tabsHideOnSubPages: true,
            scrollAssist: false,  //this
            autoFocusAssist: false //and this
        })

        if (this.platform.is('android')) {
            Keyboard.disableScroll(true);
        }

Can you provide some markup for testing this?

This is my full html




    
        
            
{{clock | async | date:"HH:mm:ss"}}
Entrada Saída intervalo Retorno intervalo Saída Presença de posto Entrada Saída intervalo Retorno intervalo Saída Presença de posto Crachá:
Marcar horário

Marcações

{{marca.Funcionario.FUNOME}} - {{marca.Funcionario.FUTIPOFU | tipouser}}
{{marca.Ponto.PT_DATA | date:"dd/MM/yyyy HH:mm:ss"}}

{{marca.Ponto.PT_TIPO | tipoponto}}

Hmm, I’m seeing it scroll while in lab, but that is only meant to be a simulation of what an app would behave like in cordova-android.
If you load outside of cordova, it should behave correctly.

The problem is that when I build and deploy to my android device, it scrolls twice, making the input go offscreen. That’s why I disabled defualt keyboard scrolling.

Also, why is it that only Android lab scrolls when input receives focus? It doesn’t happen with iOS or Windows.