Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
MaxW
Advocate II
Advocate II

Embedded report adding an unwanted 10px top margin to my iframe

Hi, 
I have embedded a report but can't seem to get it to fit the frame properly as there is a 10px top border. It is embedded with powerbi.js

 

When I embed it it the top of the report has an unwanted 10px margin which is filled with the report 'wallpaper'. The top bar is my webpage and the iframe is supposed to be seamless. The yellow line is the 10px margin that appears to be causing the problem. The line is yellow because I added a yellow 'wallpaper' in PBI desktop to prove that the line is within the iframe. How can I get rid of this margin? My report is exactly set to the frame size.

embedded renderembedded render

 Offending MarginOffending MarginView in PBI desktopView in PBI desktopPBI desktop page settingsPBI desktop page settings

1 REPLY 1
MaxW
Advocate II
Advocate II

I found a solution, but surely this is a bug.

The report renders correctly after embedding if I change the 'view' settings in PBI desktop to 'Fit to Page'.

fit to page.PNG

 

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.