Skip to main content
Aprking
Inspiring
March 22, 2024
Answered

Can I use JavaScript code in main.js to change the height of the plugin panel?

  • March 22, 2024
  • 1 reply
  • 650 views

Hello everyone!

I am here to ask a question! The height of the Illustrator CEP plugin is defined in the manifest.xml. Can I use JavaScript code in main.js to change the height of the plugin panel as the functionality changes during use?

Thank you all.

This topic has been closed for replies.
Correct answer GNDGN

Sure, just use the resizeContent() method of CSInterface:

csInterface.resizeContent(300, 600);

 

1 reply

GNDGN
GNDGNCorrect answer
Inspiring
March 22, 2024

Sure, just use the resizeContent() method of CSInterface:

csInterface.resizeContent(300, 600);

 

____________________Robotic Process Automation in Desktop Publishing (Book): https://doi.org/10.1007/978-3-658-39375-5
Aprking
AprkingAuthor
Inspiring
March 22, 2024

@GNDGNThank you! I have tried this method, but I received an error message "TypeError: csInterface.resizeContent is not a function."

GNDGN
Inspiring
March 22, 2024

Have you instantiated CSInterface before the method call?

let csInterface = new CSInterface();

 

____________________Robotic Process Automation in Desktop Publishing (Book): https://doi.org/10.1007/978-3-658-39375-5