X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/c930e9176a5a85509c5b0230e2bff5c22a591432..6e39d509471fe9b4e2660e0d1631b350d0c66f40:/docs/source/Tip.html diff --git a/docs/source/Tip.html b/docs/source/Tip.html index df04629c..0e95ba5f 100644 --- a/docs/source/Tip.html +++ b/docs/source/Tip.html @@ -1,5 +1,6 @@
+/** * @class Ext.Tip * @extends Ext.Panel + * @xtype tip * This is the base class for {@link Ext.QuickTip} and {@link Ext.Tooltip} that provides the basic layout and * positioning that all tip-based classes require. This class can be used directly for simple, statically-positioned * tips that are displayed programmatically, or it can be extended to provide custom tip implementations. @@ -94,12 +96,13 @@ tip.showAt([50,100]); }, // protected - doAutoWidth : function(){ + doAutoWidth : function(adjust){ + adjust = adjust || 0; var bw = this.body.getTextWidth(); if(this.title){ bw = Math.max(bw, this.header.child('span').getTextWidth(this.title)); } - bw += this.getFrameWidth() + (this.closable ? 20 : 0) + this.body.getPadding("lr"); + bw += this.getFrameWidth() + (this.closable ? 20 : 0) + this.body.getPadding("lr") + adjust; this.setWidth(bw.constrain(this.minWidth, this.maxWidth)); // IE7 repaint bug on initial show @@ -136,6 +139,8 @@ tip.showBy('my-el', 'tl-tr'); } }); +Ext.reg('tip', Ext.Tip); + // private - custom Tip DD implementation Ext.Tip.DD = function(tip, config){ Ext.apply(this, config);