X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/25ef3491bd9ae007ff1fc2b0d7943e6eaaccf775..6e39d509471fe9b4e2660e0d1631b350d0c66f40:/docs/source/ToolTip.html diff --git a/docs/source/ToolTip.html b/docs/source/ToolTip.html index 3e30671b..2f45fd90 100644 --- a/docs/source/ToolTip.html +++ b/docs/source/ToolTip.html @@ -1,17 +1,12 @@ - - - The source code - - - - -
/*!
- * Ext JS Library 3.0.3
- * Copyright(c) 2006-2009 Ext JS, LLC
- * licensing@extjs.com
- * http://www.extjs.com/license
- */
-
/** + + + + The source code + + + + +
/** * @class Ext.ToolTip * @extends Ext.Tip * A standard tooltip implementation for providing additional information when hovering over a target element. @@ -196,18 +191,17 @@ myGrid.on('render', function(grid) { } if(this.anchor){ this.targetCounter++; - var offsets = this.getOffsets(); - var xy = (this.anchorToTarget && !this.trackMouse) ? - this.el.getAlignToXY(this.anchorTarget, this.getAnchorAlign()) : - this.targetXY; - - var dw = Ext.lib.Dom.getViewWidth()-5; - var dh = Ext.lib.Dom.getViewHeight()-5; - var scrollX = (document.documentElement.scrollLeft || document.body.scrollLeft || 0)+5; - var scrollY = (document.documentElement.scrollTop || document.body.scrollTop || 0)+5; - - var axy = [xy[0] + offsets[0], xy[1] + offsets[1]]; - var sz = this.getSize(); + var offsets = this.getOffsets(), + xy = (this.anchorToTarget && !this.trackMouse) ? this.el.getAlignToXY(this.anchorTarget, this.getAnchorAlign()) : this.targetXY, + dw = Ext.lib.Dom.getViewWidth() - 5, + dh = Ext.lib.Dom.getViewHeight() - 5, + de = document.documentElement, + bd = document.body, + scrollX = (de.scrollLeft || bd.scrollLeft || 0) + 5, + scrollY = (de.scrollTop || bd.scrollTop || 0) + 5, + axy = [xy[0] + offsets[0], xy[1] + offsets[1]] + sz = this.getSize(); + this.anchorEl.removeClass(this.anchorCls); if(this.targetCounter < 2){ @@ -296,7 +290,8 @@ myGrid.on('render', function(grid) { // private getOffsets : function(){ - var offsets, ap = this.getAnchorPosition().charAt(0); + var offsets, + ap = this.getAnchorPosition().charAt(0); if(this.anchorToTarget && !this.trackMouse){ switch(ap){ case 't': @@ -516,6 +511,16 @@ myGrid.on('render', function(grid) { } return {x : x, y: y}; }, + + beforeDestroy : function(){ + this.clearTimers(); + Ext.destroy(this.anchorEl); + delete this.anchorEl; + delete this.target; + delete this.anchorTarget; + delete this.triggerElement; + Ext.ToolTip.superclass.beforeDestroy.call(this); + }, // private onDestroy : function(){ @@ -524,6 +529,6 @@ myGrid.on('render', function(grid) { } }); -Ext.reg('tooltip', Ext.ToolTip);
- +Ext.reg('tooltip', Ext.ToolTip);
+ \ No newline at end of file