06-29-2012 04:55 PM - edited 06-29-2012 04:57 PM
I have a row of ButtonFields, I am trying to get the actual height of them. For whatever reason getPreferredHeight() ONLY returns the height of the text inside and neglects all padding around.
This is problematic because I use the height to adjust the remaining layout before. Is there a way to get the default padding on the fly? I tried ButtonField.getPaddingTop and .Bottom however it resulted in 0. I know its only including the font height because I am actually setting the font height to X pixels, and this is what it returns yet the button surrounds the text.
06-29-2012 08:06 PM
07-01-2012 09:21 AM
I suggest you to create a variable in the customclass, say BUTTON_HEIGHT, BUTTON_WIDTH and use them. I am not sure if I understood your question correctly, but I gave my shot.
07-02-2012 03:27 AM
07-02-2012 08:12 AM