`
maodongqing
  • 浏览: 69663 次
  • 性别: Icon_minigender_2
  • 来自: 北京
最近访客 更多访客>>
社区版块
存档分类
最新评论

Ext.layout.AbsoluteLayout

    博客分类:
  • EXT
阅读更多
Ext.layout.AbsoluteLayout扩展自Ext.layout.AnchorLayout布局,其xtype值为absolute。根据子面板中配置的x/y坐标进行定位,并且坐标值支持使用固定值和百分比两种形式。

new Ext.Panel({  
    renderTo: "div2",  
    frame: true,  
    layout: "absolute",  
    title: "绝对位置布局(AbsoluteLayout)",  
    width: 500,  
    height: 300,  
    defaults: {  
        bodyStyle: "padding:3px; background-color: #FFFFFF" 
    },  
    items: [  
        {x:10, y:10, width:200, title:"嵌套面板1", html:"嵌套面板1"},  
        {x:10, y:"50%", height:100, title:"嵌套面板2", html:"嵌套面板2"}  
    ]  
}); 
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics