1
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);
}
私はtextarea
完全なコンテンツvisible
に焦点を当てたいと思います。しかし、テキストキーパッド
次の要素が十分にある場合は、list.getScrollable()。getScroller()。scrollTo(Element)を使用できます。 – Dinkheller
私はそれを試みましたが、飛び越し効果@ProtoBassiを生成します –
フォーカスの前に試しました – Dinkheller