嗨,我有一个面板,我想滚动到该面板中的特定postiton我该怎么做
var tabs= new Ext.Panel({
id:id,
title:text,
autoScroll:true,
iconCls:'windowIcon',
closable:true,
closeAction:'hide'
});
Run Code Online (Sandbox Code Playgroud)
将面板主体的scrollTop属性设置为要向下滚动的像素数:
// Scroll the body down by 100 pixels.
tabs.body.dom.scrollTop = 100;
Run Code Online (Sandbox Code Playgroud)