Resizing iframe when adding external tool

danielfdezmunoz
Community Novice

Hello,

 

I'm trying to see if there is a way to automatically resize the popup iframe when creating a new assignment and choosing submission type external tool. 

I was able to make use of postMessage but it seems that using lti.frameResize only works on the iframe when you open an existing assignment, but not when you are creating the deeplink. From Canvas own source code, I can see that it's trying to access a class that does not exist, which is .tool_content_wrapper.

 

I also know that by modifying the parameters inside the developer key I can make the external tool submission window with the size that I want, however I would like this value to be dynamic to the existing screen size.

 

 

Labels (1)