<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Build an Elastic Textarea with Ext JS</title>
	<atom:link href="http://sixrevisions.com/javascript/build-an-elastic-textarea-with-ext-js/feed/" rel="self" type="application/rss+xml" />
	<link>http://sixrevisions.com/javascript/build-an-elastic-textarea-with-ext-js/</link>
	<description></description>
	<lastBuildDate>Fri, 24 May 2013 00:49:29 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
	<item>
		<title>By: James Payne</title>
		<link>http://sixrevisions.com/javascript/build-an-elastic-textarea-with-ext-js/#comment-155724</link>
		<dc:creator>James Payne</dc:creator>
		<pubDate>Sun, 02 Sep 2012 17:50:26 +0000</pubDate>
		<guid isPermaLink="false">http://sixrevisions.com/?p=1582#comment-155724</guid>
		<description>Can I use this code in my project which I will use for business purpose? By doing so, will there be any copyright violation? In other words, is it LEGAL?</description>
		<content:encoded><![CDATA[<p>Can I use this code in my project which I will use for business purpose? By doing so, will there be any copyright violation? In other words, is it LEGAL?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Milan Zdimal</title>
		<link>http://sixrevisions.com/javascript/build-an-elastic-textarea-with-ext-js/#comment-110845</link>
		<dc:creator>Milan Zdimal</dc:creator>
		<pubDate>Thu, 04 Aug 2011 15:13:10 +0000</pubDate>
		<guid isPermaLink="false">http://sixrevisions.com/?p=1582#comment-110845</guid>
		<description>Also, I just noticed that the ExtJS textarea object has this built in. Just set the grow property to true, http://docs.sencha.com/ext-js/4-0/#/api/Ext.form.field.TextArea</description>
		<content:encoded><![CDATA[<p>Also, I just noticed that the ExtJS textarea object has this built in. Just set the grow property to true, <a href="http://docs.sencha.com/ext-js/4-0/#/api/Ext.form.field.TextArea" rel="nofollow">http://docs.sencha.com/ext-js/4-0/#/api/Ext.form.field.TextArea</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Milan Zdimal</title>
		<link>http://sixrevisions.com/javascript/build-an-elastic-textarea-with-ext-js/#comment-110800</link>
		<dc:creator>Milan Zdimal</dc:creator>
		<pubDate>Thu, 04 Aug 2011 06:20:39 +0000</pubDate>
		<guid isPermaLink="false">http://sixrevisions.com/?p=1582#comment-110800</guid>
		<description>Just an optimization thing... Setting the height of the DOM element is expensive and the height change is very delayed when you are typing fast. I found it&#039;s better to store the last height and only set a new height if the last height and the new height are not equal.

i.e.
if(this.lastHeight != textHeight)
    el.setHeight(textHeight + growBy , true);

this.lastHeight = textHeight;</description>
		<content:encoded><![CDATA[<p>Just an optimization thing&#8230; Setting the height of the DOM element is expensive and the height change is very delayed when you are typing fast. I found it&#8217;s better to store the last height and only set a new height if the last height and the new height are not equal.</p>
<p>i.e.<br />
if(this.lastHeight != textHeight)<br />
    el.setHeight(textHeight + growBy , true);</p>
<p>this.lastHeight = textHeight;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tor Olsson</title>
		<link>http://sixrevisions.com/javascript/build-an-elastic-textarea-with-ext-js/#comment-83794</link>
		<dc:creator>Tor Olsson</dc:creator>
		<pubDate>Wed, 01 Dec 2010 21:07:35 +0000</pubDate>
		<guid isPermaLink="false">http://sixrevisions.com/?p=1582#comment-83794</guid>
		<description>Made another improvement, support of multiple textareas.

I just store the created div in an array instead of in a single object (this.div).

I added:

if (!this.divArray) {
  this.divArray = new Array();
}

before &quot;if (!this.div) {&quot; in the original script and replaced every occurrence of &quot;this.div&quot; with &quot;this.divArray[elementId]&quot;.</description>
		<content:encoded><![CDATA[<p>Made another improvement, support of multiple textareas.</p>
<p>I just store the created div in an array instead of in a single object (this.div).</p>
<p>I added:</p>
<p>if (!this.divArray) {<br />
  this.divArray = new Array();<br />
}</p>
<p>before &#8220;if (!this.div) {&#8221; in the original script and replaced every occurrence of &#8220;this.div&#8221; with &#8220;this.divArray[elementId]&#8220;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tor Olsson</title>
		<link>http://sixrevisions.com/javascript/build-an-elastic-textarea-with-ext-js/#comment-83789</link>
		<dc:creator>Tor Olsson</dc:creator>
		<pubDate>Wed, 01 Dec 2010 20:25:34 +0000</pubDate>
		<guid isPermaLink="false">http://sixrevisions.com/?p=1582#comment-83789</guid>
		<description>First of, great script!
I hate oversized textareas! ;)

I had a little problem though on a page where the textarea resides within a hidden div (display: none).

When your script creates the div it gets 0 width. This makes the textarea, when visible, grow on every typed whitespace character.

I made a minor change in the script to fix this. I simply update the div&#039;s width if it has changed.

if (!this.div) {
  ..
} else if (this.div.getWidth() != width) {
  this.div.setWidth(width);
}</description>
		<content:encoded><![CDATA[<p>First of, great script!<br />
I hate oversized textareas! ;)</p>
<p>I had a little problem though on a page where the textarea resides within a hidden div (display: none).</p>
<p>When your script creates the div it gets 0 width. This makes the textarea, when visible, grow on every typed whitespace character.</p>
<p>I made a minor change in the script to fix this. I simply update the div&#8217;s width if it has changed.</p>
<p>if (!this.div) {<br />
  ..<br />
} else if (this.div.getWidth() != width) {<br />
  this.div.setWidth(width);<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: THORN</title>
		<link>http://sixrevisions.com/javascript/build-an-elastic-textarea-with-ext-js/#comment-82054</link>
		<dc:creator>THORN</dc:creator>
		<pubDate>Tue, 16 Nov 2010 05:47:35 +0000</pubDate>
		<guid isPermaLink="false">http://sixrevisions.com/?p=1582#comment-82054</guid>
		<description>Thank you man I like it (:</description>
		<content:encoded><![CDATA[<p>Thank you man I like it (:</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dan</title>
		<link>http://sixrevisions.com/javascript/build-an-elastic-textarea-with-ext-js/#comment-67231</link>
		<dc:creator>dan</dc:creator>
		<pubDate>Thu, 20 May 2010 16:50:17 +0000</pubDate>
		<guid isPermaLink="false">http://sixrevisions.com/?p=1582#comment-67231</guid>
		<description>Doesn&#039;t work for multiples textarea!!</description>
		<content:encoded><![CDATA[<p>Doesn&#8217;t work for multiples textarea!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bea</title>
		<link>http://sixrevisions.com/javascript/build-an-elastic-textarea-with-ext-js/#comment-61630</link>
		<dc:creator>bea</dc:creator>
		<pubDate>Mon, 08 Mar 2010 18:36:06 +0000</pubDate>
		<guid isPermaLink="false">http://sixrevisions.com/?p=1582#comment-61630</guid>
		<description>Does not work in IE7 or FF3.  I see side scrollbars if I type a paragraph.  In FF, it keeps going to the top.</description>
		<content:encoded><![CDATA[<p>Does not work in IE7 or FF3.  I see side scrollbars if I type a paragraph.  In FF, it keeps going to the top.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: joet</title>
		<link>http://sixrevisions.com/javascript/build-an-elastic-textarea-with-ext-js/#comment-56464</link>
		<dc:creator>joet</dc:creator>
		<pubDate>Fri, 15 Jan 2010 23:33:51 +0000</pubDate>
		<guid isPermaLink="false">http://sixrevisions.com/?p=1582#comment-56464</guid>
		<description>80k for the core? that&#039;s way too big for mobile users.</description>
		<content:encoded><![CDATA[<p>80k for the core? that&#8217;s way too big for mobile users.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim</title>
		<link>http://sixrevisions.com/javascript/build-an-elastic-textarea-with-ext-js/#comment-46170</link>
		<dc:creator>Tim</dc:creator>
		<pubDate>Wed, 16 Sep 2009 18:50:42 +0000</pubDate>
		<guid isPermaLink="false">http://sixrevisions.com/?p=1582#comment-46170</guid>
		<description>Love it! but is there a way to use it for more then one textarea per page? I&#039;d like to use in a form with several textareas.

I tried different ID with seperate calls and other combinations.

Thanks</description>
		<content:encoded><![CDATA[<p>Love it! but is there a way to use it for more then one textarea per page? I&#8217;d like to use in a form with several textareas.</p>
<p>I tried different ID with seperate calls and other combinations.</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
</channel>
</rss>
