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


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
New Contributor
Posts: 4
Registered: ‎04-20-2012
My Device: Z10
My Carrier: Rogers

WebWorks - Controls lose position after virtual keyboard pops ups + scrolling

I am experiencing a strange issue with a BlackBerry WebWorks app that I developed.  The issue is occuring on BlackBerry devices that have a virtual keyboard such as the Torch.

 

When the user focuses on a textfield, causing the virtual keyboard to pop-up, and the user subsequently scrolls down the screen while the virtual keyboard is open, and finally, the user closes the virtual keyboard, the controls on the screen lose their click position.  After this occurs, in order to click a control such as a texbox, dropdown box, or button, the user needs to click further down the page and not where the control is actually situated.  Also, it is not possible to scroll back up to the top of the page once this occurs.

 

I have tried numerous workarounds such as restricting meta viewport tag and tried to use javascript to auto-scroll back to the top after a textfield is updated - but the issue is still occuring.

 

This appears to be a bug in the BlackBerry WebWorks framework.

 

Has anyone experienced this issue?  Can you advise of any solutions or work arounds?

 

Thanks

New Contributor
Posts: 4
Registered: ‎04-20-2012
My Device: Z10
My Carrier: Rogers

Re: WebWorks - Controls lose position after virtual keyboard pops ups + scrolling

I am using version 2.3.1.5 of the WebWorks framework; the most recent version as of this posting.

New Contributor
Posts: 7
Registered: ‎03-29-2012
My Device: Dev
My Carrier: Dev

Re: WebWorks - Controls lose position after virtual keyboard pops ups + scrolling

I've experienced this bug to, also with the latest WebWorks framework.
New Contributor
Posts: 7
Registered: ‎03-29-2012
My Device: Dev
My Carrier: Dev

Re: WebWorks - Controls lose position after virtual keyboard pops ups + scrolling

Created an issue in the GitHub repo for WebWorks

https://github.com/blackberry/WebWorks/issues/116
Highlighted
Contributor
Posts: 41
Registered: ‎04-27-2010
My Device: Z10
My Carrier: VIettel

Re: WebWorks - Controls lose position after virtual keyboard pops ups + scrolling

While waiting for the fix, i suggest you guys using css "position: fixed" for the components and bind those components against "top" like:

 

.yourComponent{ position: fixed; top: [distance to top];}

 

Hope this helps.

 

---
More applications/games here: http://appworld.blackberry.com/webstore/vendor/14299/
louis.keeper@gmail.com
haitt@viethop.net
http://blackberryvietnam.net
http://viethop.com
New Contributor
Posts: 7
Registered: ‎03-29-2012
My Device: Dev
My Carrier: Dev

Re: WebWorks - Controls lose position after virtual keyboard pops ups + scrolling

Setting the position to fixed does not fix the problem.

I'd like to point out that it's not an HTML positioning problem but rather what seems to be a WebWorks screen drawing bug as the items get moved up, but the interactions (such as tapping) need to be done in their original position.