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.