View Single Post
Old 08-29-2011, 10:00 AM   #2 (permalink)
hrbuckley
BlackBerry Extraordinaire
 
Join Date: Jan 2006
Model: LEZ10
OS: 10.0.10
Carrier: Rogers CA
Posts: 1,704
Post Thanks: 20
Thanked 77 Times in 68 Posts
Default Re: Display problem overriding ButtonField

I'm not on a machine where I can look at my layout code at the moment, but IIRC unless the Manager does something about it, layout is called with huge numbers (infinity for practical perposes) for width and height. The text then gets centred between 0 and the huge number. Use the debugger to see what the value for width is to confirm this, but what you probably want to use is Device.getWidth().
__________________
My other Blackberry is a PlayBook.
Offline   Reply With Quote