Page 1 of 1

[SOLVED] Groups always 8 pixels bigger

Posted: Thu Nov 08, 2012 5:10 am
by nlexa
Make a new Stack
Drag on a button
Group the button

in the application browser we have a button and a group.
Use the inspector to check the size of the button and the size of the group.
The group is always 8 pixels taller and 8 pixels wider

Is this normal? Can I make the group exactly the size of its contents? Will this border ever be larger or smaller than 8 pixels? How do I control this padding?
groupPadding.JPG

Re: Groups always 8 pixels bigger

Posted: Thu Nov 08, 2012 5:55 am
by FourthWorld
In the "Text Formatting" section of the Inspector, see the "margins" property. By default this is set to 4 on each side, but is settable to 0 if you like.

Re: Groups always 8 pixels bigger

Posted: Sun Nov 11, 2012 10:28 pm
by nlexa
Awesome thank you FourthWorld. Forums always deliver. Why does a group have text formatting options when it doesn't have a text input? What would you use these margins for?

Re: Groups always 8 pixels bigger

Posted: Sun Nov 11, 2012 11:39 pm
by FourthWorld
Technically this isn't a text formatting property per se, but RunRev put that in the same place you'll find the margins property for other object which do contain text.

If you're using a group to visually separate controls, you can get a nice OS-savvy appearance by leaving the defaults in place (4px margin, opaque, 2px border).

And if you want anything custom, those properties are all adjustable.