Forum Discussion
White space in embed report
- 6 years ago
You need to manually adjust the width and height of the report to get rid off this scrolling with fit to width option.
For your better clarity refer to the below article:
https://www.fourmoo.com/2018/06/26/power-bi-publish-to-web-to-remove-grey-area-on-the-sides/
- 6 years ago
Hi,
I have adjusted the report manually to fit in the web page and used below style for DIV container
Then it worked, thanks for the hlep
<div id="embedContainer" style=" height: 550px;width: 100%;max-width: 1200px;"></div>
hi nagaraj
You could edit the height and width to have it fit in your portal's web page.
https://docs.microsoft.com/en-us/power-bi/collaborate-share/service-embed-secure
Regards,
Lin
HI v-lili6-msft
Thanks for the suggestion, I am using Java script API to embed the reprot and we are using APP OWNS DATA MODEL here.
Not sure if the solution in the website works as these has been done using IFrame...There we are using DIV Container
Regarsd
Nagaraj
- v-lili6-msft6 years ago
Community Support
- nagaraj6 years ago
Post Patron
Hi,
I have adjusted the report manually to fit in the web page and used below style for DIV container
Then it worked, thanks for the hlep
<div id="embedContainer" style=" height: 550px;width: 100%;max-width: 1200px;"></div>