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
Highlighted
Developer
Posts: 41
Registered: ‎09-26-2008
My Device: Not Specified

DateField Layout behavior changes from 4.3.0 to 4.5.0

We have written an Datefield version extended from net.rim.device.api.ui.component.DateField. In terms of layout, I use the layout method of the super class. When we execute our application against the 4.3.0 API, the fields are layouted so that they only cover as much space as is necessary to display their contents. But when executed against the 4.5.0 or 4.6.0 API, the field layouts itself so that it covers all the space given to it by it's manager. 

 

Unfortunately, the DateField doesn't support the USE_TEXT_WIDTH style bit. 

 

How do we convince the field to only take as much space as is necessary to display it's contents, against all versions of the API? Is this possible without overriding the layout method, which we would like to avoid)?