有时会发生我的树面板的滚动条不再起作用。虽然仍然可以移动滚动条,但树根本不再移动。这在 Firefox 和 Chrome 中也发生在我身上。
这是我的树面板的来源:
var treeStore = Ext.create('Ext.data.TreeStore', { proxy: { type: 'ajax', url: '../tree.pl' } });
var tree = Ext.create('Ext.tree.Panel', { store: treeStore, renderTo: 'tree', title: 'Tree', width: 400, height: 450, rootVisible:false, dockedItems: [{ xtype: 'toolbar', dock: 'bottom', items: [ { xtype: 'tbspacer', width: 340 }, { text: 'Search', handler: function(){ names = []; Ext.Array.each(tree.getView().getChecked(), function(rec){ names.push(rec.get('text')); });
resultStore.load({ params:{ search_type: 'tree', tree_nodes: names.join('II'), } }); } } ] }]
});