Open johnratnam opened 3 years ago
this would be awesome @yashag2255. @johnratnam were you able to find a way to do this?
hey @johnratnam check this out https://github.com/VinnyDyn/Iframe4Canvas you can download the managed version and it gives you the option to choose the width and height of the box.
the download to the managed version is on the bottom of the page.
Hi,
Thanks for the solution. I have two requirements / observation
(i) I want to change the size of the iFrame in the Power App Itself (i check the js, look's like the width and height is hardcoded) \n this.iframeelem.width = \"500\";\n this.iframeelem.height = \"700\";
I wan to use mutiple iFrame components in my App and for each of the components, the iFrame size will change (for some i want to use 200 x 300, for some i want to use 500x500), Can these be controlled in the PowerApp itself as a variable and the size we can set in PowerApp itself.
if we need to download, modify and import it back as a new solution -- Could you please share the steps for the same ?
(ii) in the iFrame component we provided few url, for some reason, the iFrame is keep on refreshing and does lots of GET Request and finally the target system dies, is there a way to control the refresh interval ? When i scroll the canvas up/down or left/right - it triggers so many outbound request to the target endpoint .
Regards, John.