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
martijnbrinkers
Posts: 155
Registered: ‎02-18-2009
My Device: Not Specified

Re: BrowserField OS 5.0 STORM2

I cannot reproduce it. In my application the HTML is wrapped. What I noticed however was when I tilted the device it didn't redraw the HTML. So if it was initially in lanscape when the HTML was drawn and I changed the device to porttrait mode some of the HTML was off-screen because the HTML was not redrawn. In your opening post you mentioned that you needed to replace the HTML content. Could that making a difference?

New Developer
bbdeveloper2009
Posts: 17
Registered: ‎12-02-2009
My Device: Not Specified

Re: BrowserField OS 5.0 STORM2

I am getting this issue on the first rendering attempt itself.
Can I ask you for your code?

Developer
martijnbrinkers
Posts: 155
Registered: ‎02-18-2009
My Device: Not Specified

Re: BrowserField OS 5.0 STORM2

I'm not doing special things. It's kind of hard to extract the relevant parts of the code because it involves multple files.

 

How does your RenderingApplication implementation look like? There are two methods that might be relevant: getAvailableHeight and getAvailableWidth

 

 

New Developer
bbdeveloper2009
Posts: 17
Registered: ‎12-02-2009
My Device: Not Specified

Re: BrowserField OS 5.0 STORM2

It Worked? My getAvailableWidth() and GetAvailableHeight() methods were returning 0, made it return desired with and height, and the text now wraps. Thanks, Marti :smileyhappy: