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

Java Development

Reply
Developer
Posts: 49
Registered: ‎06-02-2009
My Device: Curve8530, Curve8900, Storm9500
My Carrier: Airtel, vodaphone, Wifi
Accepted Solution

BrowserField2 : white space appear when scrolling

There is a strange scrolling issue with tall html's in the browserFileld2.
I have requested the html content.  and after downloading html when I view the html

and scroll to the top then scoll to the to the bottom and Scroll back up.

There is a strange white space that covers half of the screen.

Please see the screen shot attached herewith

 

scrollingissue.jpeg

 

 

Look like browserField2 not refesh the content when scrolling. how to resolve the issue ? please help.

Blackberry OS : 5.0

Developer
Posts: 49
Registered: ‎06-02-2009
My Device: Curve8530, Curve8900, Storm9500
My Carrier: Airtel, vodaphone, Wifi

Re: BrowserField2 : white space appear when scrolling

Issue has been resolved.

sorry the issue was realted to zoom in, zoom out rather then scrolling

when user press DOUBLE_TAP OR Double click to zoom in, zoom out the browser field content and if user is in middile of browserField rather then top. a white space appear automatically below the content.

I have resolved the issue by overriding screen method touchEvent(TouchEvent)

and if user is in not on top then by setting verticalScroll to zero.

 

if(te.getGesture().getEvent()== TouchGesture.DOUBLE_TAP){

 

                          if(_bf2.getManager() != null && _bf2.getManager().getVerticalScroll() > 0)

                          {
                                _bf2.getManager().setVerticalScroll(0);
                            }

 

}