Permalink
Browse files

[NEXUS-5360] Update TextArea override

  • Loading branch information...
1 parent c375606 commit 1fbeb5558f8d02527b332f12917a114c27f59876 @nabcos nabcos committed with cstamas Nov 15, 2012
@@ -15,28 +15,10 @@
define('ext/form/textarea',['extjs'], function(Ext) {
Ext.override(Ext.form.TextArea, {
wordWrap : true,
+ onRenderOriginal : Ext.form.TextArea.prototype.onRender,
onRender : function(ct, position) {
- if (!this.el)
- {
- this.defaultAutoCreate = {
- tag : "textarea",
- style : "width:100px;height:60px;",
- autocomplete : "off"
- };
- }
- Ext.form.TextArea.superclass.onRender.call(this, ct, position);
- if (this.grow)
- {
- this.textSizeEl = Ext.DomHelper.append(document.body, {
- tag : "pre",
- cls : "x-form-grow-sizer"
- });
- if (this.preventScrollbars)
- {
- this.el.setStyle("overflow", "hidden");
- }
- this.el.setHeight(this.growMin);
- }
+ this.onRenderOriginal.apply(this, arguments);
+
this.el.setOverflow('auto');
if (this.wordWrap === false)
{
@@ -10,7 +10,7 @@
* of Sonatype, Inc. Apache Maven is a trademark of the Apache Software Foundation. M2eclipse is a trademark of the
* Eclipse Foundation. All other trademarks are the property of their respective owners.
*/
-/*global Ext*/
+/*global define*/
define('ext/layout/absolutelayout', ['extjs'], function(Ext) {
/**

0 comments on commit 1fbeb55

Please sign in to comment.