Discussions

Ask a Question
Back to All

Addon window positioning/sizing

Hi,

I was just wondering if there's any way to handle positioning of the addon window when resizing it? As it stands when I use the JS SDK and call the resizing method:

client.resizeWindow(1000, 850);

The addon window just jumps to that size and doesn't reposition. That means that depending on the screen size some of the addon window may be cut off or its just oddly uncentered. Is there any way I can call a method to re-centre the window or can that be done automatically after a resize is called?

Further to that is there any method available that would tell me the maximum dimensions an addon window would be able to be to fit on the page?

Thanks