X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/25ef3491bd9ae007ff1fc2b0d7943e6eaaccf775..10a866c12701c0a0afd0ac85dcdcf32a421514ac:/docs/source/TextMetrics.html?ds=sidebyside diff --git a/docs/source/TextMetrics.html b/docs/source/TextMetrics.html index 49675e1f..236145f1 100644 --- a/docs/source/TextMetrics.html +++ b/docs/source/TextMetrics.html @@ -1,17 +1,12 @@ - -
-/*! - * Ext JS Library 3.0.3 - * Copyright(c) 2006-2009 Ext JS, LLC - * licensing@extjs.com - * http://www.extjs.com/license - */ -/** + + + ++ \ No newline at end of fileThe source code + + + + +/** * @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 @@ -66,6 +61,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)} @@ -78,6 +74,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 @@ -89,6 +86,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 @@ -98,6 +96,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 @@ -108,6 +107,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 @@ -136,6 +136,6 @@ Ext.Element.addMethods({ return (Ext.util.TextMetrics.measure(this.dom, Ext.value(text, this.dom.innerHTML, true)).width).constrain(min || 0, max || 1000000); } }); -