<?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: SVG image position in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/SVG-image-position/m-p/2489785#M35868</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/371558"&gt;@Solle&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;The container used to host any custom visual has a small amount of padding that we don't have access to, as it sits above the main body of the visual in the DOM.&lt;/P&gt;
&lt;P&gt;If it's he HTML Content visual you're using, it applies a generic scroller over the content, which is pushing the height over in this case. It may be easier to just keep the container size a little bigger, but you can style out the scrollbar handle in this case using the measure-based stylesheet property and assigning via conditional formatting, but it still may scroll if the user clicks on the visual and uses their mouse wheel.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that the property is broken in the new-style formatting pane and you will need to revert to the old version to access. This is an issue for all custom visuals utilising conditional formatting in this manner and Microsoft should be deploying a fix in the next major version of Power BI Desktop.&lt;/P&gt;
&lt;P&gt;The measure you can create for the CSS is as follows:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;CSS = ".os-scrollbar {
    visibility: hidden;
}"&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Assign this via the property and the scrollbar handle will no longer display, e.g.:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dmp_0-1651543124464.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/708201iC7C91C4AD5A9E411/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dmp_0-1651543124464.png" alt="dmp_0-1651543124464.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;</description>
    <pubDate>Tue, 03 May 2022 02:01:52 GMT</pubDate>
    <dc:creator>dm-p</dc:creator>
    <dc:date>2022-05-03T02:01:52Z</dc:date>
    <item>
      <title>SVG image position</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/SVG-image-position/m-p/2479528#M35731</link>
      <description>&lt;P&gt;Hi All,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I have an issue related to my SVG imported icon - I have the below code and I am showing the SVG by using the HTML viewer add-in, in PowerBI.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;SVG = "&amp;lt;svg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' version='1.1' id='Capa_1' x='20px' y='20px' viewBox='0 0 512 512' style='enable-background:new 0 0 512 512;' xml:space='preserve' width='40' height='40'&amp;gt;
&amp;lt;g&amp;gt;
	&amp;lt;path d='M480,224H32c-17.673,0-32,14.327-32,32s14.327,32,32,32h448c17.673,0,32-14.327,32-32S497.673,224,480,224z'/&amp;gt;
	&amp;lt;path d='M32,138.667h448c17.673,0,32-14.327,32-32s-14.327-32-32-32H32c-17.673,0-32,14.327-32,32S14.327,138.667,32,138.667z'/&amp;gt;
	&amp;lt;path d='M480,373.333H32c-17.673,0-32,14.327-32,32s14.327,32,32,32h448c17.673,0,32-14.327,32-32S497.673,373.333,480,373.333z'/&amp;gt;
&amp;lt;/g&amp;gt;


&amp;lt;/svg&amp;gt;"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The issue is that the SVG contains some blank spaces below the actual image, meaning that when i want to downsize the image, a scrollable bar shows up (see images below).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Solle_0-1651041056040.png" style="width: 200px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/705600iFFB020034BCAC8FB/image-size/small?v=v2&amp;amp;px=200" role="button" title="Solle_0-1651041056040.png" alt="Solle_0-1651041056040.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Does anyone know how to solve this?&lt;/P&gt;&lt;P&gt;Best Regards,&amp;nbsp;&lt;BR /&gt;Solle&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2022 06:33:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/SVG-image-position/m-p/2479528#M35731</guid>
      <dc:creator>Solle</dc:creator>
      <dc:date>2022-04-27T06:33:44Z</dc:date>
    </item>
    <item>
      <title>Re: SVG image position</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/SVG-image-position/m-p/2488133#M35844</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/371558"&gt;@Solle&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Base on my research, there is no proper setting to disable the scroll bar.&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="yingyinr_0-1651478212865.png" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/707831i6BEEFF07E4EA4286/image-size/large?v=v2&amp;amp;px=999" role="button" title="yingyinr_0-1651478212865.png" alt="yingyinr_0-1651478212865.png" /&gt;&lt;/span&gt;&lt;SPAN&gt;Y&lt;/SPAN&gt;&lt;SPAN&gt;ou can contact &lt;A href="mailto:pbicvsupport@microsoft.com" target="_self"&gt;custom visual support team&lt;/A&gt; to get professional help,&amp;nbsp;change the settings of HTMLViewer in the backend similar as in the following codes. Or&amp;nbsp;you can raise a new &lt;A href="https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fideas.powerbi.com%2Fideas%2F&amp;amp;data=04%7C01%7Cv-yiruan%40microsoft.com%7C4b1f392441cc4ec6703308d9e1d903f0%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637789145405388286%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&amp;amp;sdata=YMPbivGAxQ9Ty0VAkP7iCDNgTDXOau7is9m%2B75L3Wys%3D&amp;amp;reserved=0" target="_blank"&gt;&lt;STRONG&gt;idea&lt;/STRONG&gt;&lt;/A&gt; and add your comments there to make this feature coming sooner.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcommunity.powerbi.com%2Ft5%2FCustom-Visuals-Development%2FPower-BI-Custom-Visuals-Community%2Fm-p%2F667211%23M2029&amp;amp;data=05%7C01%7Cv-yiruan%40microsoft.com%7Cfcda75d51a08472c68cc08da1bbb9482%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637852789959487687%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&amp;amp;sdata=z0vZO7ZBT48xynevS%2BAWugsjWaEbazbzOajAqjKM1W8%3D&amp;amp;reserved=0" target="_self"&gt;Power BI Custom Visuals' Community&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Developer/make-custom-visuals-scrollable/m-p/98115#M3451" target="_self"&gt;&lt;SPAN&gt;make custom visuals scrollable&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;  constructor(options: VisualConstructorOptions) {
			options.element.style.overflow = 'auto';&lt;/LI-CODE&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Mon, 02 May 2022 08:03:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/SVG-image-position/m-p/2488133#M35844</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-05-02T08:03:36Z</dc:date>
    </item>
    <item>
      <title>Re: SVG image position</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/SVG-image-position/m-p/2489785#M35868</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/371558"&gt;@Solle&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;The container used to host any custom visual has a small amount of padding that we don't have access to, as it sits above the main body of the visual in the DOM.&lt;/P&gt;
&lt;P&gt;If it's he HTML Content visual you're using, it applies a generic scroller over the content, which is pushing the height over in this case. It may be easier to just keep the container size a little bigger, but you can style out the scrollbar handle in this case using the measure-based stylesheet property and assigning via conditional formatting, but it still may scroll if the user clicks on the visual and uses their mouse wheel.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that the property is broken in the new-style formatting pane and you will need to revert to the old version to access. This is an issue for all custom visuals utilising conditional formatting in this manner and Microsoft should be deploying a fix in the next major version of Power BI Desktop.&lt;/P&gt;
&lt;P&gt;The measure you can create for the CSS is as follows:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;CSS = ".os-scrollbar {
    visibility: hidden;
}"&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Assign this via the property and the scrollbar handle will no longer display, e.g.:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dmp_0-1651543124464.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/708201iC7C91C4AD5A9E411/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dmp_0-1651543124464.png" alt="dmp_0-1651543124464.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2022 02:01:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/SVG-image-position/m-p/2489785#M35868</guid>
      <dc:creator>dm-p</dc:creator>
      <dc:date>2022-05-03T02:01:52Z</dc:date>
    </item>
  </channel>
</rss>

