<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Scroll bar will not appear in embedded report in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Scroll-bar-will-not-appear-in-embedded-report/m-p/3144052#M41842</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="465802" data-lia-user-login="asbpowerbi" class="lia-mention lia-mention-user"&gt;asbpowerbi&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here I suggest you to try adding the "displayOption" property with value "FitToWidth" in customLayout object, as this option will try to fit the report as per the total available size for the page and will introduce a scrollbar for the remaining part if necessary.&lt;/P&gt;
&lt;P&gt;Also change "Widescreen" to "Custom" in pageSizeType object.&lt;/P&gt;
&lt;P&gt;You can refer to this code.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;var embedConfiguration = {
    type: 'report',
    id: '{{txtembedreportid}}',
    embedUrl: '{{txtreportembed}}',
    tokenType: models.TokenType.Embed,
    accessToken: '{{txtaccesstoken}}',
    settings: {
            layoutType: models.LayoutType.Custom,
            customLayout: {
                displayOption: models.DisplayOption.FitToWidth, // Add "FitToWidth"
                pageSize: {
                    type: models.PageSizeType.Custom, // Change to "Custom"
                }
            },
            panes:{
                bookmarks: {
                    visible: false
                },
                fields: {
                    expanded: false
                },
                filters: {
                    expanded: false,
                    visible: false
                },
                pageNavigation: {
                    visible: true
                },
                selection: {
                    visible: true
                },
                syncSlicers: {
                    visible: true
                },
                visualizations: {
                    expanded: false
                }
           }
    }
};
&lt;/LI-CODE&gt;
&lt;P&gt;For reference:&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/javascript/api/overview/powerbi/custom-layout" target="_self"&gt;Personalize a report layout&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Rico Zhou&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
    <pubDate>Tue, 21 Mar 2023 07:16:42 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-03-21T07:16:42Z</dc:date>
    <item>
      <title>Scroll bar will not appear in embedded report</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Scroll-bar-will-not-appear-in-embedded-report/m-p/3134141#M41750</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; My developer is embeding my PowerBI report in a webpage.&amp;nbsp; On one of the tabs in the report, I changed the canvas zixe to be 1500px high and 1280px wide. When I display the report in the webpage, that tab is shrunk to fit within the space provided. When I asked my developer about this issue I was told:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"When it goes into the webpage, it gets displayed as a HTML page (the Power BI report) within an iFrame, within a div.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can put scrollbars on the parent div. But that doesn’t help anything. The report ends up being the same size as the iFrame, and I can’t seem to put scrollbars on the iFrame. Even if I unnaturally zoom the report to 200%, the iFrame will only show the top portion of the report with no way to scroll around."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do I have to change something in the report setting for the scroll bar to appear? Below is an image of the report in the Iframe:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;</description>
      <pubDate>Wed, 15 Mar 2023 17:11:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Scroll-bar-will-not-appear-in-embedded-report/m-p/3134141#M41750</guid>
      <dc:creator>asbpowerbi</dc:creator>
      <dc:date>2023-03-15T17:11:47Z</dc:date>
    </item>
    <item>
      <title>Re: Scroll bar will not appear in embedded report</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Scroll-bar-will-not-appear-in-embedded-report/m-p/3138795#M41803</link>
      <description>&lt;P&gt;Any thoughts on this?&lt;/P&gt;</description>
      <pubDate>Fri, 17 Mar 2023 12:30:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Scroll-bar-will-not-appear-in-embedded-report/m-p/3138795#M41803</guid>
      <dc:creator>asbpowerbi</dc:creator>
      <dc:date>2023-03-17T12:30:05Z</dc:date>
    </item>
    <item>
      <title>Re: Scroll bar will not appear in embedded report</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Scroll-bar-will-not-appear-in-embedded-report/m-p/3144052#M41842</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="465802" data-lia-user-login="asbpowerbi" class="lia-mention lia-mention-user"&gt;asbpowerbi&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here I suggest you to try adding the "displayOption" property with value "FitToWidth" in customLayout object, as this option will try to fit the report as per the total available size for the page and will introduce a scrollbar for the remaining part if necessary.&lt;/P&gt;
&lt;P&gt;Also change "Widescreen" to "Custom" in pageSizeType object.&lt;/P&gt;
&lt;P&gt;You can refer to this code.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;var embedConfiguration = {
    type: 'report',
    id: '{{txtembedreportid}}',
    embedUrl: '{{txtreportembed}}',
    tokenType: models.TokenType.Embed,
    accessToken: '{{txtaccesstoken}}',
    settings: {
            layoutType: models.LayoutType.Custom,
            customLayout: {
                displayOption: models.DisplayOption.FitToWidth, // Add "FitToWidth"
                pageSize: {
                    type: models.PageSizeType.Custom, // Change to "Custom"
                }
            },
            panes:{
                bookmarks: {
                    visible: false
                },
                fields: {
                    expanded: false
                },
                filters: {
                    expanded: false,
                    visible: false
                },
                pageNavigation: {
                    visible: true
                },
                selection: {
                    visible: true
                },
                syncSlicers: {
                    visible: true
                },
                visualizations: {
                    expanded: false
                }
           }
    }
};
&lt;/LI-CODE&gt;
&lt;P&gt;For reference:&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/javascript/api/overview/powerbi/custom-layout" target="_self"&gt;Personalize a report layout&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Rico Zhou&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Mar 2023 07:16:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Scroll-bar-will-not-appear-in-embedded-report/m-p/3144052#M41842</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-03-21T07:16:42Z</dc:date>
    </item>
  </channel>
</rss>

