Support » Plugin: Google Analyticator » ToolTip Fix

  • Sudavar


    In the summary widget in admin control panel, there is a problem with the tooltip shown after hovering over the most recent days (last dots on the graph).

    As the tooltip is shown 20px to the right of pointer and the pointer is close to the right end of the window, a scroll bar appears and the tooltip is not visible (not at all for the last day, a little for the previous day etc) Example

    If you add this code:

    var wdw = jQuery( window ).width();
    if(item.pageX > (wdw - wdw*0.08))
    	item.pageX -= 170;

    before calling showTooltip() in file: google-analytics-summary-widget.php line 84 problem seems to solve as shown here

Viewing 2 replies - 1 through 2 (of 2 total)
  • Noticed this bug myself. I changed wdw*0.08 to wdw*0.12. Don’t really want to dig into the code at the moment, but maybe if you could get the width of the box, and anything to the right half of the widget box, make the tooltip go left, and anything on the left half, make it go to the right.

    As i said before (as the plugin is written now) the tooltip is shown some pixels right to the cursor (sorry not pointer) when you hover over a dot (day). So my thought was that if the cursor is closer than 8% to the right side of the screen, then the tooltip should appear 170px left from the cursor, making it appear to the left of the pointer not to the right.

    As for your idea, it will complicate the code (as it is written now). Besides when your dashboard is on the 1rst column of admin panel, it is far away from the right side so the tooltip will be always visible.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘ToolTip Fix’ is closed to new replies.