Upgrade to ExtJS 3.3.0 - Released 10/06/2010
[extjs.git] / docs / source / TextMetrics.html
index 49675e1..f433be0 100644 (file)
@@ -1,13 +1,14 @@
 <html>
 <head>
+  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />    
   <title>The source code</title>
     <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />
     <script type="text/javascript" src="../resources/prettify/prettify.js"></script>
 </head>
 <body  onload="prettyPrint();">
     <pre class="prettyprint lang-js">/*!
- * Ext JS Library 3.0.3
- * Copyright(c) 2006-2009 Ext JS, LLC
+ * Ext JS Library 3.3.0
+ * Copyright(c) 2006-2010 Ext JS, Inc.
  * licensing@extjs.com
  * http://www.extjs.com/license
  */
@@ -66,6 +67,7 @@ Ext.util.TextMetrics.Instance = function(bindTo, fixedWidth){
 
     var instance = {
         <div id="method-Ext.util.TextMetrics-getSize"></div>/**
+         * <p><b>Only available on the instance returned from {@link #createInstance}, <u>not</u> on the singleton.</b></p>
          * Returns the size of the specified text based on the internal element's style and width properties
          * @param {String} text The text to measure
          * @return {Object} An object containing the text's size {width: (width), height: (height)}
@@ -78,6 +80,7 @@ Ext.util.TextMetrics.Instance = function(bindTo, fixedWidth){
         },
 
         <div id="method-Ext.util.TextMetrics-bind"></div>/**
+         * <p><b>Only available on the instance returned from {@link #createInstance}, <u>not</u> on the singleton.</b></p>
          * Binds this TextMetrics instance to an element from which to copy existing CSS styles
          * that can affect the size of the rendered text
          * @param {String/HTMLElement} el The element, dom node or id
@@ -89,6 +92,7 @@ Ext.util.TextMetrics.Instance = function(bindTo, fixedWidth){
         },
 
         <div id="method-Ext.util.TextMetrics-setFixedWidth"></div>/**
+         * <p><b>Only available on the instance returned from {@link #createInstance}, <u>not</u> on the singleton.</b></p>
          * Sets a fixed width on the internal measurement element.  If the text will be multiline, you have
          * to set a fixed width in order to accurately measure the text height.
          * @param {Number} width The width to set on the element
@@ -98,6 +102,7 @@ Ext.util.TextMetrics.Instance = function(bindTo, fixedWidth){
         },
 
         <div id="method-Ext.util.TextMetrics-getWidth"></div>/**
+         * <p><b>Only available on the instance returned from {@link #createInstance}, <u>not</u> on the singleton.</b></p>
          * Returns the measured width of the specified text
          * @param {String} text The text to measure
          * @return {Number} width The width in pixels
@@ -108,6 +113,7 @@ Ext.util.TextMetrics.Instance = function(bindTo, fixedWidth){
         },
 
         <div id="method-Ext.util.TextMetrics-getHeight"></div>/**
+         * <p><b>Only available on the instance returned from {@link #createInstance}, <u>not</u> on the singleton.</b></p>
          * Returns the measured height of the specified text.  For multiline text, be sure to call
          * {@link #setFixedWidth} if necessary.
          * @param {String} text The text to measure
@@ -136,6 +142,6 @@ Ext.Element.addMethods({
         return (Ext.util.TextMetrics.measure(this.dom, Ext.value(text, this.dom.innerHTML, true)).width).constrain(min || 0, max || 1000000);
     }
 });
-</pre>
+</pre>    
 </body>
 </html>
\ No newline at end of file