X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/c930e9176a5a85509c5b0230e2bff5c22a591432..6a7e4474cba9d8be4b2ec445e10f1691f7277c50:/docs/source/TextMetrics.html diff --git a/docs/source/TextMetrics.html b/docs/source/TextMetrics.html index 246052ca..3dddcd04 100644 --- a/docs/source/TextMetrics.html +++ b/docs/source/TextMetrics.html @@ -1,11 +1,18 @@ - -
-/** + + + ++ \ No newline at end of fileThe source code + + + + +/*! + * Ext JS Library 3.2.0 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/** * @class Ext.util.TextMetrics * Provides precise pixel measurements for blocks of text so that you can determine exactly how high and * wide, in pixels, a given block of text will be. Note that when measuring text, it should be plain text and @@ -60,6 +67,7 @@ Ext.util.TextMetrics.Instance = function(bindTo, fixedWidth){ var instance = { /** + *- +Only available on the instance returned from {@link #createInstance}, not on the singleton.
* 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)} @@ -72,6 +80,7 @@ Ext.util.TextMetrics.Instance = function(bindTo, fixedWidth){ }, /** + *Only available on the instance returned from {@link #createInstance}, not on the singleton.
* 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 @@ -83,6 +92,7 @@ Ext.util.TextMetrics.Instance = function(bindTo, fixedWidth){ }, /** + *Only available on the instance returned from {@link #createInstance}, not on the singleton.
* 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 @@ -92,6 +102,7 @@ Ext.util.TextMetrics.Instance = function(bindTo, fixedWidth){ }, /** + *Only available on the instance returned from {@link #createInstance}, not on the singleton.
* Returns the measured width of the specified text * @param {String} text The text to measure * @return {Number} width The width in pixels @@ -102,6 +113,7 @@ Ext.util.TextMetrics.Instance = function(bindTo, fixedWidth){ }, /** + *Only available on the instance returned from {@link #createInstance}, not on the singleton.
* 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 @@ -130,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); } }); -