This content has been marked as final. Show 3 replies
It's because you're setting the coordinates of the panel. There have been a couple of discussions about this here. Let ScriptUI determine the size of the panel.
In general, use the layout manager to place things.
When you specify the bounds like you do in the panel, the layout manager "sees" the bounds in the container, and stops. It will not layout the contents of the container. Possible "containers" are windows, panels, and groups.
Basically, once you specify the bounds for a container, you're committed. You have to specify the bounds for everything in it.
var win = new Window( "palette", "test" );
win.radioPanel = win.add("panel");
win.radioPanel.rpGrp = win.radioPanel.add('group');
win.radioPanel.rpGrp.radOne = win.radioPanel.rpGrp.add("radiobutton");
This will give you a dorky looking little palette.
Dave and Bob,
thanks very much for the answer.