Upgrade to ExtJS 3.1.1 - Released 02/08/2010
[extjs.git] / src / widgets / tips / Tip.js
index 4fe75ce..4a798fe 100644 (file)
@@ -1,6 +1,6 @@
 /*!
- * Ext JS Library 3.0.3
- * Copyright(c) 2006-2009 Ext JS, LLC
+ * Ext JS Library 3.1.1
+ * Copyright(c) 2006-2010 Ext JS, LLC
  * licensing@extjs.com
  * http://www.extjs.com/license
  */
@@ -94,12 +94,13 @@ tip.showAt([50,100]);
     },\r
 \r
     // protected\r
-    doAutoWidth : function(){\r
+    doAutoWidth : function(adjust){\r
+        adjust = adjust || 0;\r
         var bw = this.body.getTextWidth();\r
         if(this.title){\r
             bw = Math.max(bw, this.header.child('span').getTextWidth(this.title));\r
         }\r
-        bw += this.getFrameWidth() + (this.closable ? 20 : 0) + this.body.getPadding("lr");\r
+        bw += this.getFrameWidth() + (this.closable ? 20 : 0) + this.body.getPadding("lr") + adjust;\r
         this.setWidth(bw.constrain(this.minWidth, this.maxWidth));\r
         \r
         // IE7 repaint bug on initial show\r