Skip to main content
JesB-SsPV8V
Inspiring
October 25, 2013
Answered

Why can't I resize my script more?

  • October 25, 2013
  • 1 reply
  • 801 views

How can I resize my script as much as the script with the red square (see picture below)?

You can see my script on the left. So what I want to do is to resize my script as thin as the script highlighted with the red square.

Someone know how to do this?

         

This topic has been closed for replies.
Correct answer Alan_AEDScripts

Hi there, that's actually my script on the right.

So it's a mix of spacing and margins.

win.spacing=1;  // min spacing between elements. 1 pixel

win.margins=[0,0,0,0] // margins like a picture frame around outermost items and window.

This propogates down to groups and panels, so if buttons in a group, adjust those properties for the panel.

Also you need to be careful about knowing about Automatic layout and hard coding some of this stuff, they may conflict.

I like to hard code some stuff for more control, but it can take longer to bug check and fix than letting it automatically layout.

Peter Kahrel has a good pdf online if you google it and gives a good explanation of all the basic ui concepts.

1 reply

Alan_AEDScripts
Alan_AEDScriptsCorrect answer
Inspiring
October 27, 2013

Hi there, that's actually my script on the right.

So it's a mix of spacing and margins.

win.spacing=1;  // min spacing between elements. 1 pixel

win.margins=[0,0,0,0] // margins like a picture frame around outermost items and window.

This propogates down to groups and panels, so if buttons in a group, adjust those properties for the panel.

Also you need to be careful about knowing about Automatic layout and hard coding some of this stuff, they may conflict.

I like to hard code some stuff for more control, but it can take longer to bug check and fix than letting it automatically layout.

Peter Kahrel has a good pdf online if you google it and gives a good explanation of all the basic ui concepts.

JesB-SsPV8V
Inspiring
October 27, 2013

Hi Alan

Thank you for your help.

I also want to thank you for having created Layer Groups. Love the script you have created, and it's very.... useful!