Ext.onReady(function(){
new Ext.Viewport({
forceFit: true,
hideMode: "offsets",
layout: "border",
defaults: {autoScroll: true},
items: [
{
region: "north",
contentEl: "north-panel-container-id",
},
{
region: "center",
contentEl: "center-panel-container-id",
autoScroll: true
},
]
})
});
如果不生效,则设置:
height:500,
autoScroll:true,
阅读(15527) | 评论(0) | 转发(0) |