PDA

View Full Version : [FNR] collapseMode mini not working



vjrj
13 May 2008, 4:00 PM
It seems that collapseMode=mini is not working.

My test code:


package org.myapp;

import com.extjs.gxt.ui.client.Style.LayoutRegion;
import com.extjs.gxt.ui.client.util.Margins;
import com.extjs.gxt.ui.client.widget.Button;
import com.extjs.gxt.ui.client.widget.ContentPanel;
import com.extjs.gxt.ui.client.widget.Viewport;
import com.extjs.gxt.ui.client.widget.layout.BorderLayout;
import com.extjs.gxt.ui.client.widget.layout.BorderLayoutData;
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.user.client.ui.RootPanel;

public class Sandbox implements EntryPoint {
public void onModuleLoad() {
Viewport viewport = new Viewport();
viewport.setLayout(new BorderLayout());

BorderLayoutData westData = new BorderLayoutData(LayoutRegion.WEST, 125, 0, 200);
westData.split = true;
westData.collapsible = true;
westData.collapseMode = "mini";
westData.margins = new Margins(5, 5, 5, 5);
BorderLayoutData centerData = new BorderLayoutData(LayoutRegion.CENTER);

ContentPanel west = new ContentPanel();
west.setHeaderVisible(false);
ContentPanel center = new ContentPanel();
west.setTitle("Testing");
center.add(new Button("button1"));
west.add(new Button("button2"));

viewport.add(west, westData);
viewport.add(center, centerData);
viewport.layout();
RootPanel.get().add(viewport);
}
}

darrellmeyer
14 May 2008, 2:54 PM
collapseMode mini is not implemented at this time. The config option has been removed from BorderLayoutData.