Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
8 years ago

Power BI Embedded fittowidth

Hi,

 

I've got a web app which I'm embedding a Power BI Dashboard in from a group workspace.  I'm trying to get the dashboard to "fit to width" (just like when going full screen in the service then pressing the fit to width button).  I've added the pageView: "fittowidth" in the embed code in the web app and it works in IE but I cannot get it to work in Chrome, Chrome just shows a horizontal scroll bar.  I've tried setting the CSS for the dashboard container width attribute to be between 95% and 100% and also an absolute value (eg 500px) and it just doesn't work in Chrome, I always get the scrollbars as Chrome is displaying the dashboard as it's actual size.  I'd like the dashboard to "fit to width" on users desktop pcs, laptops etc but if they're not using IE it doesn't work.

 

Has anyone had this issue before and if so were they able to solve it?

 

Thanks

1 Reply

  • Eric_Zhang's avatar
    Eric_Zhang
    Microsoft Employee

    Anonymous wrote:

    Hi,

     

    I've got a web app which I'm embedding a Power BI Dashboard in from a group workspace.  I'm trying to get the dashboard to "fit to width" (just like when going full screen in the service then pressing the fit to width button).  I've added the pageView: "fittowidth" in the embed code in the web app and it works in IE but I cannot get it to work in Chrome, Chrome just shows a horizontal scroll bar.  I've tried setting the CSS for the dashboard container width attribute to be between 95% and 100% and also an absolute value (eg 500px) and it just doesn't work in Chrome, I always get the scrollbars as Chrome is displaying the dashboard as it's actual size.  I'd like the dashboard to "fit to width" on users desktop pcs, laptops etc but if they're not using IE it doesn't work.

     

    Has anyone had this issue before and if so were they able to solve it?

     

    Thanks


    Anonymous

    I don't see any horizontal scroll bar when viewing an embedded dashboard in Chrome. The dashboard is always auto fitting the width when changing the Chrrome window size. Could you share more details of your dashboard so that I can reproduce the same issue?