cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
cjemmott Advocate I
Advocate I

iframe scaling issue

I am currently using PowerBI Premium and am embedding reports into my web application using an iFrame. When I am viewing reports at design time in app.powerbi.com the "Fit to page" option works great. When I embed these reports in an iFrame in my web app, it does not. Specifically it behaves as if it were set to "Fit to width".

 

I have read the following resources:

 

https://powerbi.microsoft.com/en-us/documentation/powerbi-service-publish-to-web/#tips-and-tricks-fo...

 

https://github.com/Microsoft/PowerBI-JavaScript/wiki/Embed-Configuration-Details

 

https://powerbi.microsoft.com/en-us/documentation/powerbi-service-tutorial-change-report-display-set...

 

but none of these were helpful in resolving this issue.

5 REPLIES 5
Super User IV
Super User IV

Re: iframe scaling issue

Possibly a simple solution but have you specified the iFrame sizing for your application?

I have viewed some embedded applications and it did fit in as expected. (I did not create the embedded applications though)




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!






Power BI Blog
cjemmott Advocate I
Advocate I

Re: iframe scaling issue

I opened ticket 117072116076977 about this on July 24 and will keep this topic updated.  It is an ongoing production issue.

cyan Helper I
Helper I

Re: iframe scaling issue

Hello,

@cjemmott any updates on this issue? 

@GilbertQ You can check in the Microsoft embedded sample by resizing the page there is grey space at the height of the iframe meanwhile the width is adjusting normally. https://microsoft.github.io/PowerBI-JavaScript/demo/v2-demo/index.html 

Thus it's not fulfilling the condition of "Fit to Page" view, any suggestions about a possible solution? 

Thanks...

fotomaxstudio
New Member

Re: iframe scaling issue

Not sure if this would help but this tool helped me to get rid of grey areas

https://lukaszpawlowski-ms.github.io/Optimize-Publish-To-Web/

Super User IV
Super User IV

Re: iframe scaling issue

Hi @cyan

 

The suggestion by @fotomaxstudio would be the best option to get it to remove the white spaces at the end.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!






Power BI Blog

Helpful resources

Announcements
New Ranks Launched March 24th!

New Ranks Launched March 24th!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power BI Community!

‘Better Together’ Contest Finalists Announced!

‘Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Arun 'Triple A' Event Video, Q&A, and Slides

Arun 'Triple A' Event Video, Q&A, and Slides

Missed the Arun 'Triple A' event or want to revisit it? We've got you covered! Check out the video, Q&A, and slides now.

Join THE global Microsoft Power Platform event series.

Join THE global Power Platform event series.

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities.

Community Summit North America

Community Summit North America

Innovate, Collaborate, Grow. The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors