SOLVED

Sizing the iFrame or PowerApp canvas in Modern Sharepoint web part

Brass Contributor

I am in the process of replacing our InfoPath 2010 forms with PowerApps and really am enjoying the experience! I was hoping someone out there could help me determine the best way to size a PowerApp that is embedded in a Modern SharePoint site. 

 

Has anyone done this or know the correct size an app (Portrait) would need to be so that the grey canvas background does not show up?

embed-powerapp-size.PNG

 

3 Replies
best response confirmed by Brandon McGinnis (Brass Contributor)
Solution
If you want portrait, there is a setting for the app in PowerApps to mark it as used for embedding, this changes the background to white so removes your grey.
If you use the standard landscape size with the same setting, in full width sections you can resize it when you edit the page to go to the edge of the section.

Thank you @Alan Marshall

I removed the grey background and pushed to the top left, but am still unable to size the SharePoint web part properly.

The PowerApp is 375 x 700, and I'm using a 1-Third column layout. The SharePoint web part doesn't allow me to resize the canvas of the app and make it appear full as it should.

 

Here is a screenshot of what it looks like.

 

Sharepoint-Column-Sizing.PNG

 

I reloaded the SharePoint page and then was allowed to edit the size of the PowerApp canvas. Seems all is well!

 

Thanks community!

1 best response

Accepted Solutions
best response confirmed by Brandon McGinnis (Brass Contributor)
Solution
If you want portrait, there is a setting for the app in PowerApps to mark it as used for embedding, this changes the background to white so removes your grey.
If you use the standard landscape size with the same setting, in full width sections you can resize it when you edit the page to go to the edge of the section.

View solution in original post