Skip to main content
felice_denigris
Participating Frequently
December 17, 2014
Question

How to change Window panel title size?

  • December 17, 2014
  • 2 replies
  • 406 views

I have created a script with a gui Window with groups and panels. My issue is when I fire the script either from After Effects or from the Extendscript Debugger, I can't see the whole title on my panel title. Below is an image highlighting the error I am seeing.

This topic has been closed for replies.

2 replies

felice_denigris
Participating Frequently
December 17, 2014

I've been able to fix the title size on my Window with the code below:

panelZero.alignment = ['fill','fill'];

However the panel title still doesn't display to full size if the script is run as a panel in the Scripts>ScriptUIPanels folder. Not sure Why?

UQg
Legend
December 17, 2014

Some containers have a "titleLayout" property (search the JavaScript Tool Guide pdf) but i just checked and panels don't have it (only tabbedpanels).
So the only way i bet is to make your panels wider, which you can do in many ways.

For instance : myPanel.preferredSize = [130, -1];     // sets the preferredSize.width to 130

Or myPanel.margins = [30,10,30,10];      // increase horizontal margins of the panel so it it becomes wider