<?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: Report Embed in Phone Layout shows only middle part in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Report-Embed-in-Phone-Layout-shows-only-middle-part/m-p/408595#M12180</link>
    <description>&lt;P&gt;The Layout have two values for the Mobile, make sure you configured it as&amp;nbsp;&lt;SPAN&gt;MobilePortrait.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Code example:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;var embedConfiguration = {
	type: 'report',
	id: '5dac7a4a-4452-46b3-99f6-a25915e0fe55',
	embedUrl: 'https://app.powerbi.com/reportEmbed',
	tokenType: models.TokenType.Embed,
	accessToken: 'h4...rf',
	settings: {
            layoutType: &lt;STRONG&gt;models.LayoutType.MobilePortrait&lt;/STRONG&gt;
        }
};&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Michael&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 02 May 2018 08:19:43 GMT</pubDate>
    <dc:creator>v-micsh-msft</dc:creator>
    <dc:date>2018-05-02T08:19:43Z</dc:date>
    <item>
      <title>Report Embed in Phone Layout shows only middle part</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Report-Embed-in-Phone-Layout-shows-only-middle-part/m-p/407322#M12143</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to use the&amp;nbsp;mobile embed layout as explained here;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Microsoft/PowerBI-JavaScript/wiki/Embed-For-Mobile" target="_blank"&gt;https://github.com/Microsoft/PowerBI-JavaScript/wiki/Embed-For-Mobile&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my config settings looks like for embed;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;"{"tokenType":0,"accessToken":"&amp;lt;TOKEN&amp;gt;","permissions":7,"id":"211ff41e-e652-473a-9586-92d1f126ad99","embedUrl":"https://app.powerbi.com/reportEmbed?reportId=211ff41e-e652-473a-9586-92d1f126ad99","type":"report","pageName":"ReportSection","pageView":"oneColumn","settings":{"filterPaneEnabled":false,"navContentPaneEnabled":false,"layoutType":2}}"&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="object-value-string value"&gt;&lt;SPAN class="object-value-string-quote"&gt;The height and width of the embed div is:&amp;nbsp;&lt;STRONG&gt;width: 724px; height: 407.25px;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="object-value-string value"&gt;&lt;SPAN class="object-value-string-quote"&gt;I tried to change the height and width but that didnt matter much.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="object-value-string value"&gt;&lt;SPAN class="object-value-string-quote"&gt;Here is a screenshot of the power BI desktop in Phone Layout:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="object-value-string value"&gt;&lt;SPAN class="object-value-string-quote"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Power BI Phone Layout" style="width: 346px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/93231i5CAF81149F6E75FB/image-size/large?v=v2&amp;amp;px=999" role="button" title="Phone_Layout.png" alt="Power BI Phone Layout" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Power BI Phone Layout&lt;/span&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="object-value-string value"&gt;And here is how it looks in page after embed with MobilePortraitLayout:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="object-value-string value"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="After embed" style="width: 308px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/93232iC96EC7080677754F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Web_Screenshot.png" alt="After embed" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;After embed&lt;/span&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="object-value-string value"&gt;Just want to understand whats wrong am I doing. I tried to play with the height / width to ensure thats not something wrong I am doing but that didn't help.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="object-value-string value"&gt;Any help will be appreciated!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Apr 2018 14:12:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Report-Embed-in-Phone-Layout-shows-only-middle-part/m-p/407322#M12143</guid>
      <dc:creator>nitin_sp</dc:creator>
      <dc:date>2018-04-30T14:12:32Z</dc:date>
    </item>
    <item>
      <title>Re: Report Embed in Phone Layout shows only middle part</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Report-Embed-in-Phone-Layout-shows-only-middle-part/m-p/408595#M12180</link>
      <description>&lt;P&gt;The Layout have two values for the Mobile, make sure you configured it as&amp;nbsp;&lt;SPAN&gt;MobilePortrait.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Code example:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;var embedConfiguration = {
	type: 'report',
	id: '5dac7a4a-4452-46b3-99f6-a25915e0fe55',
	embedUrl: 'https://app.powerbi.com/reportEmbed',
	tokenType: models.TokenType.Embed,
	accessToken: 'h4...rf',
	settings: {
            layoutType: &lt;STRONG&gt;models.LayoutType.MobilePortrait&lt;/STRONG&gt;
        }
};&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Michael&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 May 2018 08:19:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Report-Embed-in-Phone-Layout-shows-only-middle-part/m-p/408595#M12180</guid>
      <dc:creator>v-micsh-msft</dc:creator>
      <dc:date>2018-05-02T08:19:43Z</dc:date>
    </item>
    <item>
      <title>Re: Report Embed in Phone Layout shows only middle part</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Report-Embed-in-Phone-Layout-shows-only-middle-part/m-p/411697#M12266</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;Michael,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Yes i do change the layout using following code;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;	if (util.is.mobilePortrait()) {
				if (data.hasMobilePortraitLayout) {
					config.settings.layoutType = models.LayoutType.MobilePortrait;
					config.pageView = "oneColumn";
				}
			}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That code also executes before&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;powerbi.embed(reportContainer, config);&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I also thought pageView might help but it doesnt. So I tried with and without page view but no luck.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Seems some bug with embed API?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 May 2018 08:03:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Report-Embed-in-Phone-Layout-shows-only-middle-part/m-p/411697#M12266</guid>
      <dc:creator>nitin_sp</dc:creator>
      <dc:date>2018-05-07T08:03:09Z</dc:date>
    </item>
  </channel>
</rss>

