Input focus scrolls wrongly


#1

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);
        }

#2

Can you provide some markup for testing this?


#3

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}}


#4

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.


#5

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.