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
avinash_kumar_ispg_in
Posts: 172
Registered: ‎01-02-2012
My Device: 8520 curve
Accepted Solution

Overlapping Browserfield on vertical scroll

Hi every one

 

 I am adding three instance of BrowserField  in a VerticalFieldManager having feature with vertical scroll,

 

Like Given Below

 

VerticalFieldManager Vfm=new VerticalFieldManager(VERTICAL_SCROLL);

LabelField lbf1=new LabelField("broserfield1");

Vfm.add(lbf1);

BrowserField browserfield1= new BrowserField(myBrowserFieldConfig);

Vfm.add(browserfield1);

 

LabelField lbf2=new LabelField("broserfield2");

Vfm.add(lbf2);

BrowserField browserfield2= new BrowserField(myBrowserFieldConfig);

Vfm.add(browserfield2);

 

LabelField lbf3=new LabelField("broserfield3");

Vfm.add(lbf3);

BrowserField browserfield3= new BrowserField(myBrowserFieldConfig);

Vfm.add(browserfield3);

 

add(Vfm);

 

  My problem is that while i am scrolling it in device 9700 the second is overlapping over first label and browserfield, same third one over second labelfield and browserfield.

 

 how to solve it can any body help me.

 

thanks.

Developer
peter_strange
Posts: 19,610
Registered: ‎07-14-2008
My Device: Not Specified

Re: Overlapping Browserfield on vertical scroll

I am sorry to say I don't know what is causing this issue.

 

However I would suggest that you test this situation - where you have multiple BrowserFields on the same screen - before you try to hard to solve the problem.  My experience of multiple BrowserFields on the same screen is, to be blunt, bad.  There are issues moving focus from one to another which for me makes this a less than desirable User experience.  So test this out and make sure that you really do want to display multiple BrowserFields on the same screen. 

Developer
avinash_kumar_ispg_in
Posts: 172
Registered: ‎01-02-2012
My Device: 8520 curve

Re: Overlapping Browserfield on vertical scroll

Hi Peter

 

actually i am developing one app and i am getting three diffrent details from server side as  a html tag through webservices ,so i need to display that on same screen one after another,thats why i am trying this.

can we solve it in any other  way?

 

Note:- But i need to display it one after another in same screen.

Developer
avinash_kumar_ispg_in
Posts: 172
Registered: ‎01-02-2012
My Device: 8520 curve

Re: Overlapping Browserfield on vertical scroll

hi

 i got the solution of my problem

 

actually i added some extra HTML code fore label name and added all details in single browserfield instance.

 

thanks.