Copy link to clipboard
Copied
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.
Sure, just use the resizeContent() method of CSInterface:
csInterface.resizeContent(300, 600);
Copy link to clipboard
Copied
Sure, just use the resizeContent() method of CSInterface:
csInterface.resizeContent(300, 600);
Copy link to clipboard
Copied
@GNDGNThank you! I have tried this method, but I received an error message "TypeError: csInterface.resizeContent is not a function."
Copy link to clipboard
Copied
Have you instantiated CSInterface before the method call?
let csInterface = new CSInterface();
Copy link to clipboard
Copied
I made a silly mistake. I was using an older version of CSInterface.js. After switching to the updated version of CSInterface.js, the issue was resolved. I apologize for taking up valuable community resources. Thank you for the help, @GNDGN