<?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: Tooltip appearing in top left corner of browser when a field is added in Custom Visuals Development Discussion</title>
    <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Tooltip-appearing-in-top-left-corner-of-browser-when-a-field-is/m-p/1079273#M3153</link>
    <description>&lt;P&gt;This problem is also occuring when using the drill trough context menu.&lt;/P&gt;</description>
    <pubDate>Thu, 07 May 2020 13:13:31 GMT</pubDate>
    <dc:creator>aminb06400</dc:creator>
    <dc:date>2020-05-07T13:13:31Z</dc:date>
    <item>
      <title>Tooltip appearing in top left corner of browser when a field is added</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Tooltip-appearing-in-top-left-corner-of-browser-when-a-field-is/m-p/1067069#M3151</link>
      <description>&lt;P&gt;Tooltips in custom visuals are appearing at the top left corner of the browser window in Power BI Online (screen position 0,0). This bug began around April 20, 2020.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I thought this might be a bug in my custom visual or a bug caused by conflicting libraries so I tried to test using a newly created, basic visual. This bug occurs in the update counter visual that is created by default in a new visual which is attached with minor changes to show the tooltip on mouse down.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This bug appears when a field is added to a category and disappears when the visual is updated either through a selection in a different visual in the report or by changing options in the formatting pane or adding a measure. The bug reappears if the field is removed and a field is added again. In reports with multiple data roles, the issue reappears when all fields are removed from the visuals and fields are added back in again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TooltipPositionBug1.png" style="width: 342px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/263122iA0CF1B335E1F241F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="TooltipPositionBug1.png" alt="TooltipPositionBug1.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TooltipPositionBug2.png" style="width: 319px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/263123iE3C394D942B03F1D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="TooltipPositionBug2.png" alt="TooltipPositionBug2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;"use strict";

import "core-js/stable";
import "./../style/visual.less";
import powerbi from "powerbi-visuals-api";
import VisualConstructorOptions = powerbi.extensibility.visual.VisualConstructorOptions;
import VisualUpdateOptions = powerbi.extensibility.visual.VisualUpdateOptions;
import IVisual = powerbi.extensibility.visual.IVisual;
import EnumerateVisualObjectInstancesOptions = powerbi.EnumerateVisualObjectInstancesOptions;
import VisualObjectInstance = powerbi.VisualObjectInstance;
import DataView = powerbi.DataView;
import VisualObjectInstanceEnumerationObject = powerbi.VisualObjectInstanceEnumerationObject;
import TooltipShowOptions = powerbi.extensibility.TooltipShowOptions;
import VisualUpdateType = powerbi.VisualUpdateType;
import IViewport = powerbi.IViewport;

import { VisualSettings } from "./settings";
export class Visual implements IVisual {
    private target: HTMLElement;
    private updateCount: number;
    private settings: VisualSettings;
    private textNode: Text;
    host: powerbi.extensibility.visual.IVisualHost;
    element: HTMLElement;
    updateOptions: VisualUpdateOptions;


    constructor(options: VisualConstructorOptions) {
        console.log('Visual constructor', options);
        this.target = options.element;
        this.updateCount = 0;
        this.host = options.host;
        
        if (document) {
            const new_p: HTMLElement = document.createElement("p");
            new_p.appendChild(document.createTextNode("Update count:"));
            const new_em: HTMLElement = document.createElement("em");
            this.textNode = document.createTextNode(this.updateCount.toString());
            new_em.appendChild(this.textNode);
            new_p.appendChild(new_em);
            this.target.appendChild(new_p);

            this.target.onmousedown = ((event) =&amp;gt; {

                var category = this.updateOptions.dataViews[0].categorical.categories[0];

                let selectionId = this.host.createSelectionIdBuilder()
                    .withCategory(category, 0)
                    .createSelectionId().getKey();

                let ttip: TooltipShowOptions = {
                    dataItems: [
                        { displayName: "Update Count", value: "" + this.updateCount }
                    ],
                    identities: [selectionId],
                    coordinates: [100, 100],
                    isTouchEvent: false
                };

                this.host.tooltipService.show(ttip);
            })

            this.target.onmouseup = ((event) =&amp;gt; {

                this.host.tooltipService.hide({
                    immediately: false,
                    isTouchEvent: false
                });
            }
            )
        }
    }

    public update(options: VisualUpdateOptions) {
        this.updateCount++;
 
        this.settings = Visual.parseSettings(options &amp;amp;&amp;amp; options.dataViews &amp;amp;&amp;amp; options.dataViews[0]);

        if (this.textNode) {
            this.textNode.textContent = (this.updateCount).toString();
        }

        this.updateOptions = options;
    }

    private static parseSettings(dataView: DataView): VisualSettings {
        return &amp;lt;VisualSettings&amp;gt;VisualSettings.parse(dataView);
    }

    public enumerateObjectInstances(options: EnumerateVisualObjectInstancesOptions): VisualObjectInstance[] | VisualObjectInstanceEnumerationObject {
        return VisualSettings.enumerateObjectInstances(this.settings || VisualSettings.getDefault(), options);
    }
}&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 04 May 2020 14:54:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Tooltip-appearing-in-top-left-corner-of-browser-when-a-field-is/m-p/1067069#M3151</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-04T14:54:31Z</dc:date>
    </item>
    <item>
      <title>Re: Tooltip appearing in top left corner of browser when a field is added</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Tooltip-appearing-in-top-left-corner-of-browser-when-a-field-is/m-p/1079273#M3153</link>
      <description>&lt;P&gt;This problem is also occuring when using the drill trough context menu.&lt;/P&gt;</description>
      <pubDate>Thu, 07 May 2020 13:13:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Tooltip-appearing-in-top-left-corner-of-browser-when-a-field-is/m-p/1079273#M3153</guid>
      <dc:creator>aminb06400</dc:creator>
      <dc:date>2020-05-07T13:13:31Z</dc:date>
    </item>
    <item>
      <title>Re: Tooltip appearing in top left corner of browser when a field is added</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Tooltip-appearing-in-top-left-corner-of-browser-when-a-field-is/m-p/1079648#M3154</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for noticing.&lt;/P&gt;&lt;P&gt;It's a known issue. Unfortunately, it's a problem in Power BI service itself, but not in some visual code.&lt;/P&gt;&lt;P&gt;It should be fixed soon.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Evgenii Elkin,&lt;BR /&gt;Software Engineer&lt;BR /&gt;Microsoft Power BI Custom Visuals&lt;BR /&gt;pbicvsupport@microsoft.com&lt;/P&gt;</description>
      <pubDate>Thu, 07 May 2020 16:44:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Tooltip-appearing-in-top-left-corner-of-browser-when-a-field-is/m-p/1079648#M3154</guid>
      <dc:creator>v-evelk</dc:creator>
      <dc:date>2020-05-07T16:44:49Z</dc:date>
    </item>
    <item>
      <title>Re: Tooltip appearing in top left corner of browser when a field is added</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Tooltip-appearing-in-top-left-corner-of-browser-when-a-field-is/m-p/1087852#M3168</link>
      <description>&lt;P&gt;Any idea when the fix will be released ? I would like to demo a report which uses tooltips.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 May 2020 12:27:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Tooltip-appearing-in-top-left-corner-of-browser-when-a-field-is/m-p/1087852#M3168</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-13T12:27:16Z</dc:date>
    </item>
    <item>
      <title>Re: Tooltip appearing in top left corner of browser when a field is added</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Tooltip-appearing-in-top-left-corner-of-browser-when-a-field-is/m-p/1090256#M3169</link>
      <description>&lt;P&gt;I am also experinceing this same issue within Power BI Desktop.&lt;/P&gt;</description>
      <pubDate>Thu, 14 May 2020 18:22:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Tooltip-appearing-in-top-left-corner-of-browser-when-a-field-is/m-p/1090256#M3169</guid>
      <dc:creator>rtbergin</dc:creator>
      <dc:date>2020-05-14T18:22:44Z</dc:date>
    </item>
    <item>
      <title>Re: Tooltip appearing in top left corner of browser when a field is added</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Tooltip-appearing-in-top-left-corner-of-browser-when-a-field-is/m-p/1096376#M3181</link>
      <description>&lt;P&gt;This bug was fixed in service. ETA is June 6th, and the next version of the Desktop app.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Evgenii Elkin,&lt;BR /&gt;Software Engineer&lt;BR /&gt;Microsoft Power BI Custom Visuals&lt;BR /&gt;pbicvsupport@microsoft.com&lt;/P&gt;</description>
      <pubDate>Tue, 19 May 2020 13:22:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Tooltip-appearing-in-top-left-corner-of-browser-when-a-field-is/m-p/1096376#M3181</guid>
      <dc:creator>v-evelk</dc:creator>
      <dc:date>2020-05-19T13:22:15Z</dc:date>
    </item>
    <item>
      <title>Re: Tooltip appearing in top left corner of browser when a field is added</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Tooltip-appearing-in-top-left-corner-of-browser-when-a-field-is/m-p/1178865#M3254</link>
      <description>&lt;UL&gt;&lt;LI&gt;We have the same problem in Report Server.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;We were using Power BI Report Server (January 2020) and everything worked fine.&lt;/P&gt;&lt;P&gt;Recently we've updated to Power BI Report Server (May 2020).&lt;/P&gt;&lt;P&gt;In one of my reports I'm using Power BI Certified, Radar/Polar Chart by xViz&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I first open report in browser it works fine. But when I navigate to other pages via bookmarks and then back to the first page, the tooltip jumps to the top left corner.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jul 2020 06:03:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Tooltip-appearing-in-top-left-corner-of-browser-when-a-field-is/m-p/1178865#M3254</guid>
      <dc:creator>kozjek1994</dc:creator>
      <dc:date>2020-07-24T06:03:25Z</dc:date>
    </item>
    <item>
      <title>Re: Tooltip appearing in top left corner of browser when a field is added</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Tooltip-appearing-in-top-left-corner-of-browser-when-a-field-is/m-p/1245849#M3284</link>
      <description>&lt;P&gt;Will this be fixed before the Sept release of Server version?&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jul 2020 17:23:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Tooltip-appearing-in-top-left-corner-of-browser-when-a-field-is/m-p/1245849#M3284</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-23T17:23:08Z</dc:date>
    </item>
  </channel>
</rss>

