X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/7a654f8d43fdb43d78b63d90528bed6e86b608cc..refs/heads/master:/docs/source/Tip4.html diff --git a/docs/source/Tip4.html b/docs/source/Tip4.html index 0425d10e..37fc93bb 100644 --- a/docs/source/Tip4.html +++ b/docs/source/Tip4.html @@ -1,6 +1,23 @@ -Sencha Documentation Project
/**
+
+
+
+  
+  The source code
+  
+  
+  
+  
+
+
+  
/**
  * @class Ext.chart.Tip
- * @ignore
+ * Provides tips for Ext.chart.series.Series.
  */
 Ext.define('Ext.chart.Tip', {
 
@@ -22,7 +39,10 @@ Ext.define('Ext.chart.Tip', {
                 constrainPosition: false
             });
             me.tooltip = Ext.create('Ext.tip.ToolTip', me.tipConfig);
-            Ext.getBody().on('mousemove', me.tooltip.onMouseMove, me.tooltip);
+            me.chart.surface.on('mousemove', me.tooltip.onMouseMove, me.tooltip);
+            me.chart.surface.on('mouseleave', function() {
+                me.hideTip();
+            });
             if (me.tipConfig.surface) {
                 //initialize a surface
                 surface = me.tipConfig.surface;
@@ -82,4 +102,6 @@ Ext.define('Ext.chart.Tip', {
             tooltip.hide();
         }, 0);
     }
-});
\ No newline at end of file +});
+ +