Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
After publishing a report to my Azure Workspace, I am able now to integrate it to my portal using JavaScript, but I get a scroll bar and not sure what property to adjust to make it fit the Div
Hi @ukluk,
Are you using <iframe> to embed your report within a Div?
If that is the case, you should be able to change the width of the <iframe>, or set scrolling property to "no" to make it fit the Div in this scenario.
var iframeHtml = "<iframe style=\"width:100%;height:100%;\" src=\"" + this.config.embedUrl + "\" scrolling=\"no\" allowfullscreen=\"true\"></iframe>"; this.element.innerHTML = iframeHtml;
For more details, you can refer to the Power BI Sample here.
Regards
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.