PDA

View Full Version : Form, label and field widths...??



gslender
6 Jun 2008, 10:49 PM
When working out form widths, does anyone know the widths of the extra bits that make up the panel - ie when I add label width and field width it is always way less than the needed formpanel width.

I'd like to know what the extra min padding would be so that I can snuggly offer the right width - also, if some of it is CSS based, how would I know this when changing themes? Is there a way to programatically pull out the panel border widths?

gslender
13 Jun 2008, 5:03 PM
When you add the padding (default of 20) it all adds up fine - but none of this is documented and should probably be clearly added in Javadocs when setting labelwidth and fieldwidth that panel width needs to = labelwidth + fieldwidth + padding

Also, would be nice to be able to programmatically get/set padding