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

Please use plain text.
New Contributor
andyjgibbs
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.

Please use plain text.
New Contributor
shanesmith
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.
Please use plain text.
New Contributor
shanesmith
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
Please use plain text.
Contributor
bbkeeper
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
Please use plain text.
New Contributor
shanesmith
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.
Please use plain text.