In creating a button I find I can only reduce the padding to a certain 
point. The code I'm using is:

Button btnname = new Button(itm.name);
Style nameStyle = btnname.getAllStyles();
RoundRectBorder roundBorder = RoundRectBorder.create().cornerRadius((float) 
2);
nameStyle.setBorder(roundBorder);
nameStyle.setFgColor(0xffffff);
nameStyle.setBgColor(0);
nameStyle.setBgTransparency(64);
nameStyle.setPaddingUnit(UNIT_TYPE_PIXELS);
nameStyle.setPadding(Component.BOTTOM,20);
nameStyle.setPadding(Component.TOP,20);

The padding I'm observing is the distance between the edge of the text and 
the edge of the border. If try to set the padding below 20 there is no 
change.

-Dennis


-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/d29a7937-88e2-4b5a-be29-c0d73aa6f330n%40googlegroups.com.

Reply via email to