jquery autoResize textarea does not work when in jquery ui tab

jquery autoResize textarea does NOT work when in jquery ui tab.

jquery autoResize works outside of tab.

See both examples in jsFiddle. Click the "Details" tab to see it not resize.


this is using the autoresize by James Padolsey http://james.padolsey.com

Any ideas?


This bug appears to be when the original element is not visible on the page and thus the clone function in the plugin fails to find the width. This can be resolved by the following steps:

  1. Change clone to be a function (remove wrapping parens and ())
  2. Call the clone function in updateSize
  3. Trigger the updateSize event whenever a tab is shown or loads (up to you)

I've made the modifications in this fiddle: http://jsfiddle.net/6BwqE/29/

I inlined the modified source for the autoResize plugin and added a show event to the tabs call.

Need Your Help

While pushing a viewcontroller there is a jerk in animation

ios objective-c

For pushing a view controller I'm using following code. On tap of UITableViewCell need to push DetailViewController

Maven Compilation error: cannot find symbol with local dependecies

maven intellij-idea dependencies

When I run "mvn compile" on my Maven project, I get error messages like the following:

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.