---
title: "Ext布局_BorderLayout"
author: "thw"
date: "2011-01-20T15:24:46Z"
tags: ["EXT"]
categories: ["Web前端"]
slug: "ext-borderlayout"
draft: false
lastmod: "2011-01-20T15:25:50Z"
id: 889904
url: "https://thw.iteye.com/blog/889904"
---

BorderLayout布局的使用

 

        new Ext.Viewport({  
            layout: 'border',  
            items: [{  
                region:  'north',  
                id: 'northPanel',  
                contentEl: 'northDiv',  
                border: false,  
                margins:  '0 0 0 0',  
                split:  false  
            },{  
                region: 'west',  
                id: 'westPanel',  
                contentEl: 'westDiv',  
                //border:false,  
                margins:  '0 0 0 0',  
                split:  true,  
                width:  260,     
                layout:  'fit',             
                items:  westGrid  
            },{  
                region: 'center',  
                id: 'centerPanel',  
                border: false,  
                margins:  '0 0 0 0',  
                layout:  'border',  
                items: [{  
                    region:  'north',  
                    id: 'childNorthPanel',  
                    contentEl:  'childNorthDiv',  
                    border: false,  
                    margins:  '0 0 0 0',  
                    split: false  
                },{  
                    region:  'center',  
                    id: 'centerPanel1',  
                    contentEl:  'childCenterDiv',  
                    title: '明细设定',  
                    //border: false,  
                    layout:  'fit',  
                    margins:  '0 0 0 0',  
                    height:  '100%',  
                    items:  centerGrid  
                }  
                ]  
            }  
            ]  
        });