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

Posts: 300
Registered: ‎03-12-2009
My Device: Not Specified

Set Width but not Height

I've been trying to set the Width of a field manager, and NOT the height.


I have a bunch of text that is unknown in length and needs to wrap to the next line. But I want ot set the width. Well, what I really want to do is setMargin and have a small border around the text (so it's no flush against the screen) but the "margin" doesn't seem to work if the width isn't set (for the right side)


I tried overriding the sublayout, but when you set the width, it stays on all one line.


How do I set the width of a field manager, but have the height be automatic?

Posts: 3,951
Registered: ‎07-15-2008
My Device: Not Specified

Re: Set Width but not Height

This KB article will help you.



Use Search. "Accept Solution" If the problem is resolved.