It's a bit late, but I stumbled upon it just now and remembered that I needed to do something similar and eventually redefine the component of the text area, which automatically expands to full-screen mode with a double click, creating a copy of the component in a full-sized window. When closing, values ββare automatically updated in the instance component, which was hidden behind a full-screen window and, therefore, was never displayed from dom in the first place.
Here is my code, I think it is pretty clear.
Hope this helps someone!
Rob.
Ext.override(Ext.form.TextArea, { popout: true, 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); } if (this.popout && !this.readOnly) { if (!this.popoutLabel) { this.popoutLabel = this.fieldLabel; } this.popoutClose = 'Close'; var field = this; this.getEl().on('dblclick', function() { field.popoutTextArea(this.id); }); }; }, popoutTextArea: function(elId) { var field = this; tBox = new Ext.form.TextArea({ popout: false, anchor: '100% 100%', labelStyle: 'font-weight:bold; font-size:14px;', value: Ext.getCmp(elId).getValue(), fieldLabel: field.popoutLabel, labelSeparator: field.labelSeparator }); viewSize = Ext.getBody().getViewSize(); textAreaWin = new Ext.Window({ width: viewSize.width - 50, height: viewSize.height - 50, closable: false, draggable: false, border: false, bodyStyle: 'background-color:#badffd;',
source share