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

How to resize a HTML panel dynamically?

Community Beginner ,
Apr 11, 2017 Apr 11, 2017

Copy link to clipboard

Copied

How to resize a HTML panel dynamically?

TOPICS
Actions and scripting

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
Adobe
Contributor ,
Apr 11, 2017 Apr 11, 2017

Copy link to clipboard

Copied

LATEST

/**

* Resize extension's content to the specified dimensions.

* 1. Works with modal and modeless extensions in all Adobe products.

* 2. Extension's manifest min/max size constraints apply and take precedence.

* 3. For panel extensions

*    3.1 This works in all Adobe products except:

*        * Premiere Pro

*        * Prelude

*        * After Effects

*    3.2 When the panel is in certain states (especially when being docked),

*        it will not change to the desired dimensions even when the

*        specified size satisfies min/max constraints.

*

* Since 6.0.0

*

* @param width  The new width

* @param height The new height

*/

CSInterface.prototype.resizeContent = function(width, height)

{

    window.__adobe_cep__.resizeContent(width, height);

};

From Adobe's CSInterface-6.1.0.js

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