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
Trusted Contributor
Posts: 118
Registered: ‎03-06-2013
My Device: Blackberry Z10
My Carrier: Airtel

Footer moves up along with virtual keyboard

hi,

though footer's position is given as fixed, it moves up along with virtual keyboard. let me know any work around for this

--------
- If a post contains the solution to the problem, please click "Accept as Solution"
- If a post contains helpful content, please give it a "Thumbs Up"

developer.blackberry.com
@BlackBerryDev
Trusted Contributor
Posts: 118
Registered: ‎03-06-2013
My Device: Blackberry Z10
My Carrier: Airtel

Re: Footer moves up along with virtual keyboard

Could anyone pour in their thots about how to overcome this problem?

--------
- If a post contains the solution to the problem, please click "Accept as Solution"
- If a post contains helpful content, please give it a "Thumbs Up"

developer.blackberry.com
@BlackBerryDev
Developer
Posts: 18
Registered: ‎03-05-2012
My Device: 9360, PlayBook,10 Dev Alpha
My Carrier: Play

Re: Footer moves up along with virtual keyboard

Trusted Contributor
Posts: 118
Registered: ‎03-06-2013
My Device: Blackberry Z10
My Carrier: Airtel

Re: Footer moves up along with virtual keyboard

above link didnt give me idea, could u please explain what were u trying to explain with this link
--------
- If a post contains the solution to the problem, please click "Accept as Solution"
- If a post contains helpful content, please give it a "Thumbs Up"

developer.blackberry.com
@BlackBerryDev
BlackBerry Development Advisor
Posts: 758
Registered: ‎10-01-2009
My Device: All
My Carrier: N/A

Re: Footer moves up along with virtual keyboard

Are you using a framework in your app, specifically jQuery Mobile?  I believe this is the default behaviour for that one if I remember right.

Retired
Posts: 165
Registered: ‎09-24-2012
My Device: Passport
My Carrier: Bell

Re: Footer moves up along with virtual keyboard

Having a fixed footer will not solve your problem. When the virtual keyboard is up, the actual viewport height decreases, so the footer moves up along with it. This is by design.

 

What you need to do is hide the footer when the keyboard is opened. This can either be done in CSS (as per the link we provided), or you can listen for keyboard events using JavaScript and apply a "display:none" property to footer: https://developer.blackberry.com/html5/apis/blackberry.app.html#.event:keyboardOpened