Skip to main content
Inspiring
October 23, 2016
Question

Positioning and Sizing the app.activeWindow?

  • October 23, 2016
  • 0 replies
  • 165 views

I have an scriptUI modal dialog that I position to the top left corner of the screen. I extend the height of the dialog to the height of the screen.

I make the active document window full size with the following code:

var myMenuAction = app.menuActions.item("$ID/Consolidate All Windows");

myMenuAction.invoke();

after turning off the application frame and controls.

Setting the activeWindow bounds to the width of the dialog:

app.activeWindow.bounds.left = 237;

How to ensure that the main document window is sized and positioned?

This topic has been closed for replies.