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?
[SOLVED] Groups always 8 pixels bigger
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
[SOLVED] Groups always 8 pixels bigger
Last edited by nlexa on Thu Jul 11, 2013 6:01 am, edited 1 time in total.
-
- VIP Livecode Opensource Backer
- Posts: 10043
- Joined: Sat Apr 08, 2006 7:05 am
- Contact:
Re: Groups always 8 pixels bigger
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.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Re: Groups always 8 pixels bigger
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?
-
- VIP Livecode Opensource Backer
- Posts: 10043
- Joined: Sat Apr 08, 2006 7:05 am
- Contact:
Re: Groups always 8 pixels bigger
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.
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.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn