• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Panel window height & width: Getting and setting the dimensions

Enthusiast ,
Apr 21, 2017 Apr 21, 2017

Copy link to clipboard

Copied

Setting

In custom panels for Photoshop, Illustrator, and InDesign it's possible to dynamically set the panel window size with the following command:

window.__adobe_cep__.resizeContent(YourCustomWidth,YourCustomHeight);

Not so, it seems, for Premiere Pro, After Effects, and Audition.

Getting

window.innerWidth and window.innerHeight seem to work reliably in JS context for

After Effects, Audition, Photoshop, Illustrator, and InDesign, but not reliably for Premiere.  The innerHeight seems to get jammed at 800.

TOPICS
SDK

Views

1.5K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Engaged , Apr 21, 2017 Apr 21, 2017

Yep, that's as per the CEP "cookbook" ... it's not supported.

Changing modal and modeless extension content size is supported in all Adobe applications that supports CEP. However, changing panel HTML extension size is not supported in Premiere Pro, Prelude, After Effects and Audition.

Votes

Translate

Translate
Engaged ,
Apr 21, 2017 Apr 21, 2017

Copy link to clipboard

Copied

Yep, that's as per the CEP "cookbook" ... it's not supported.

Changing modal and modeless extension content size is supported in all Adobe applications that supports CEP. However, changing panel HTML extension size is not supported in Premiere Pro, Prelude, After Effects and Audition.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Apr 22, 2017 Apr 22, 2017

Copy link to clipboard

Copied

LATEST

Is there a benefit or logic to that?  Would seem helpful to have consistency / increased functionality across apps.  Thanks for the reply.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines