Copy link to clipboard
Copied
How to resize a HTML panel dynamically?
Copy link to clipboard
Copied
/**
* 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