1

enter image description here `

constructor: function() {
          this.adjustHeight = Ext.Function.createBuffered(function(textarea) {
            var textAreaEl = textarea.getComponent().input;

            if (textAreaEl) {
              textAreaEl.dom.style.height = 'auto'; 
              var iNewHeight = textAreaEl.dom.scrollHeight;
              if (iNewHeight > 0) {
                textAreaEl.dom.style.height = textAreaEl.dom.scrollHeight + "px";
              }
            }
          },200,this);

          this.callParent(arguments);
        }

I want the textarea focused with full content visible . But text area hiding with keypad

Arun Kumar
  • 129
  • 1
  • 11

1 Answers1

0

Try to use the onBeforeFocus event with scrolling:

scrollableView.scrollTo(textfield.element.getXY()[0],textfield.element.getXY()[1]);

And now you might want to do this to all textfields and textareafields, so that the user gets the same on all items.

Make sure, that the effect is either earlier than the keypad animation or delay it with about 175ms.

Ext.defer(function() {###your code goes here###}, 175, this);
Dinkheller
  • 4,631
  • 5
  • 39
  • 67