Skip to main content
daves95694859
Inspiring
April 19, 2018
Question

Modal Dialog Repositioning

  • April 19, 2018
  • 1 reply
  • 411 views

Hi there,

I'm in the process of creating an Illustrator Plug-in using an HTML/js extension for the UI. I have noticed that the extension type is set to Panel that the panel remembers its last position on the screen, but if you move a ModalDialog, close and reopen it, it always appears in the centre of the screen.

Is there a way to do this for a ModalDialog or a way to get/set the position of it?

Cheers

This topic has been closed for replies.

1 reply

Trevor:
Legend
April 19, 2018

window.screen.width, window.screen.height, window.screenLeft and window.screenTop will get you the data you can save that on close  if you are luck and access it on load but you can only set the width and height but not the position window.__adobe_cep__.resizeContent(width, height);

You might be able to able to do some os side stuff using node exec and simulating mouse dragging etc. but that would be tricky.

In short as of now it can't be done, or at least I don't know how to do it.