06-22-2009 03:40 AM
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)?