Skip to main content
Whatevermajorloser
Inspiring
December 1, 2015
Question

Center palette window on screen?

  • December 1, 2015
  • 1 reply
  • 380 views

Is there a way to have a palette display in the center of a users screen? Displaying a dialog like this does it just fine:

var w = new Window("dialog", "test", undefined);
w.show()

However, if I then simply change it to a palette..

var w = new Window("palette", "test", undefined);

w.show()

..it no longer displays in the center of the screen.

Does anyone know why this is?

This topic has been closed for replies.

1 reply

JJMack
Community Expert
Community Expert
December 2, 2015

In cc 2015 I find that Adobe always display the ScriptUI dialog centered even when its not where you set it to be displayed. So it looks liks displaying pallets windows and dialog windows Adobe has problems.

JJMack
Whatevermajorloser
Inspiring
December 2, 2015

The behaviour seems to be a bit random. At home, it doesn't display in the center, but on my machine at work it does. Weird.