Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
New Contributor
Posts: 9
Registered: ‎01-07-2013
My Device: alpha

BB 10 Keyboard making Elements repositioned

Hi when i am invoking keyboard by clicking textbox it's reposotioning all the elements of my apps.


Any idea How to fix this ??

New Developer
Posts: 5
Registered: ‎07-24-2012
My Device: Curve 8520, Bold 9900, Dev Alpha

Re: BB 10 Keyboard making Elements repositioned

Hi,

When the virtual keyboard opens, a resize event is generated (because there's less space in the screen).

If positioning is done by CSS using relative units, you get this kind of behaviour or, at least, the viewport will be scrolled to keep the active control visible.

If you're placing elements in screen by code, then just avoid doing it if the window width didn't change.

 

Hope it helps,

Handout