You found a bug! We've classified it as EXTGWT-2459 . We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
  1. #1
    Sencha Premium Member
    Join Date
    Apr 2012
    Posts
    117
    Vote Rating
    0
    tmancini is on a distinguished road

      0  

    Post Chart Legend ToolTips not hiding

    Chart Legend ToolTips not hiding


    It appears this used to be a bug with the chart ToolTips, but I am noticing the same issue with the legend ToolTip. With the chart, the ToolTip displays and hides once you move the mouse outside of the container, however the Legend's ToolTips do not hide at all. This is the code contained inside of my class that extends Chart.

    PHP Code:
        final Legend<Tlegend = new Legend<T>();
        
    legend.setPosition(Position.RIGHT);
        
    legend.setItemHighlighting(true);
        
    legend.setItemHiding(true);
        
        final 
    LegendToolTipConfig<TlegendConfig = new LegendToolTipConfig<T>();
        
    legendConfig.setDismissDelay(0);
        
    legendConfig.setHideDelay(0);
        
        
    legend.addLegendItemOverHandler(new LegendItemOverHandler() {
          @
    Override
          
    public void onLegendItemOver(LegendItemOverEvent event) {
            if(
    getElement() != null) {
              
    legendConfig.setBodyHtml(getToolTipText(storeevent.getIndex()));
              
    legend.setToolTipConfig(legendConfig);
            }
          } 
        });
        
        
    setLegend(legend); 

  2. #2
    Sencha Premium Member
    Join Date
    Apr 2012
    Posts
    117
    Vote Rating
    0
    tmancini is on a distinguished road

      0  

    Default


    This is the other thread I was referring to:

    http://www.sencha.com/forum/showthre...ou-hoovered-on

  3. #3
    Sencha - GXT Dev Team
    Join Date
    Feb 2009
    Location
    Minnesota
    Posts
    2,731
    Vote Rating
    90
    Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light

      0  

    Default


    Thanks, I'll move this thread to the bugs forum and file it internally.

    At present, of the setters you used on the LegendToolTipConfig, the setHideDelay will have no effect, though this isn't well documented, and we may be able to fix this.

    A workaround, for your consideration: Try adding a handler to the legend for the LegendItemOutHandler, and invoke Legend.getToolTip().hide() when that handler goes off. In my brief testing, this has worked:
    Code:
        legend.addLegendItemOutHandler(new LegendItemOutHandler() {
          @Override
          public void onLegendItemOut(LegendItemOutEvent event) {
            legend.getToolTip().hide();
          }
        });
    We'll update this thread when we have a fix available.

Thread Participants: 1