我正得到一个滚动条 在Viewport, 我如何可以删除它。
我知道这种情况很奇怪,因为在文件里我们有:
The Viewport does not provide scrolling, so child Panels within the Viewport
should provide for scrolling if needed using the autoScroll config.
http://docs.sencha.com/ext-js/4-0#!/api/Ext.container.Viewport" rel=“no follow” >viewport sencha doc
<% 1\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ <\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
Ext.define( MyViewport , {
extend : Ext.container.Viewport ,
layout : border ,
padding : 5 5 5 5 ,
defaults: {
split: true,
autoScroll : false
},
initComponent : function() {
this.items = [{
region: north ,
height: 70,
width : 100% ,
split : false,
padding : 0 0 5 0 ,
items:[{
//here some items
}]
},{
region: west ,
collapsible: true,
width: 210,
maxWidth : 210,
autoScroll : false,
items:[{
//here some items
}]
},{
region: center ,
id : workspace ,
//here I add panels dynamically
}];
this.callParent(arguments);
}
});
我错过了这些?