BorderLayoutData centerLayoutData = new BorderLayoutData(RegionPosition.CENTER);
centerLayoutData.setMargins(new Margins(5, 0, 5, 5));
Panel centerPanelWrappper = new Panel();
centerPanelWrappper.setLayout(new FitLayout());
centerPanelWrappper.setBorder(false);
centerPanelWrappper.setBodyBorder(false);
if (bi.showChrome) {
//setup the west regions layout properties
BorderLayoutData westLayoutData = new BorderLayoutData(RegionPosition.WEST);
westLayoutData.setMargins(new Margins(5, 5, 0, 5));
westLayoutData.setCMargins(new Margins(5, 5, 5, 5));
westLayoutData.setMinSize(155);
westLayoutData.setMaxSize(350);
westLayoutData.setSplit(true);
//create the west panel and add it to the main panel applying the west region layout properties
Panel westPanel = new Panel();
westPanel.setId("side-nav");
westPanel.setTitle(((Constants) GWT.create(Constants.class)).Navigate());
westPanel.setLayout(new FitLayout());
westPanel.setWidth(210);
westPanel.setCollapsible(true);//MN createWestPanel();
westPanel.add(accordion);
mainPanel.add(westPanel, westLayoutData);
}