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

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.

New Contributor
Posts: 3
Registered: ‎11-07-2012
My Device: 9320
My Carrier: multi

BrowserField disappears on scroll


I am new to BlackBerry and it is nice to be here Smiley Happy

I have following problem:

My application is based on PageManagerView. In one of the Panes after pressing specified item BrowserField with local html content is displayed. Unfortunately, if user starts scrolling the BrowserField it disappears.

Structure of my views/fields is following:
MainScreen -> PaneManagerView -> VerticalFieldManager(NO_SCROLL) -> VerticalFieldManager(VERTICAL_SCROLL) -> BrowserField


Bellow I attach code which I use to add and present BrowserField:


if (resourceAddr.length() > 0) {
	mFirstPageFocusedMenuItemIndex = mFirstMenuPage.getFieldWithFocusIndex();
	System.out.println("Present web view " + mFirstPageFocusedMenuItemIndex);
	VerticalFieldManager browserManager = new VerticalFieldManager(FOCUSABLE | VERTICAL_SCROLL | NO_HORIZONTAL_SCROLL | USE_ALL_HEIGHT | VERTICAL_SCROLLBAR);

	BrowserField browserField = new BrowserField();
	InputStream in = getClass().getResourceAsStream(resourceAddr);

	mCurrentMenuPage = WEBVIEW_MENU_PAGE;
	try {
		byte[] data = IOUtilities.streamToBytes(in);
		browserField.displayContent(data, "text/html", "local:///ofirmie/");
	} catch (Exception e){


Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: BrowserField disappears on scroll

Try this:

VerticalFieldManager browserManager = new VerticalFieldManager(FOCUSABLE | VERTICAL_SCROLL | NO_HORIZONTAL_SCROLL | VERTICAL_SCROLLBAR);


I have removed:


New Contributor
Posts: 3
Registered: ‎11-07-2012
My Device: 9320
My Carrier: multi

Re: BrowserField disappears on scroll

Thanks for your answer, unfortunately this does not help.


I will try to extract the code and put it in example app, which will be  without panes

New Contributor
Posts: 3
Registered: ‎11-07-2012
My Device: 9320
My Carrier: multi

Re: BrowserField disappears on scroll

Unfortunately it does work when added to single MainScreen in basic, one screen, Hello World application. The only thing which I had to change was addition of USE_ALL_HEIGHT | USE_ALL_WIDTH . After adding this flags to my complex project things are worse. BrowserField does not even display, however scrolling arrows are visible.


I don't know what to do now ?? Smiley Sad