Pergunta

when closing the virtual keyboard in blackberry webworks, the page sometimes doesn't use the space of the keyboard anymore, that space is blank.

Is there any way to prevent this bug?

Any help would be appreciated, thank you in advance!

Foi útil?

Solução 2

I found a solution to this issue myself:

With JS:

window.onresize = function(){
    window.scrollTo(0,0);
}

Or with jQuery:

$(window).resize(function(){
    $(window).scrollTop(0);
});

This should prevent the bug...

Outras dicas

I would double check that you are using the latest version of the WebWorks SDK available for your platform (Smartphone, Tablet, BB10), as well as using the latest OS on your device. If you're still seeing issues, I'd log this as a bug: https://www.blackberry.com/jira/secure/Dashboard.jspa

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top