1. #1
    Ext User
    Join Date
    Apr 2008
    Posts
    118
    Vote Rating
    0
    Kutu is on a distinguished road

      0  

    Default [FIXED] setHideCollapseTool doesn't seem to work with BorderLayoutData

    [FIXED] setHideCollapseTool doesn't seem to work with BorderLayoutData


    Taken from the BorderLayoutExample.java:

    1) Try to hide the collapseTool of the North ContentPanel
    2) And at the same, make sure the BorderLayoutData.setCollapsible is set to true.

    Code:
    /*
     * Ext GWT - Ext for GWT Copyright(c) 2007, 2008, Ext JS, LLC. licensing@extjs.com http://extjs.com/license
     */
    package com.extjs.gxt.samples.client.examples.layouts;
    
    import com.extjs.gxt.ui.client.Style.LayoutRegion;
    import com.extjs.gxt.ui.client.util.Margins;
    import com.extjs.gxt.ui.client.widget.ContentPanel;
    import com.extjs.gxt.ui.client.widget.LayoutContainer;
    import com.extjs.gxt.ui.client.widget.layout.BorderLayout;
    import com.extjs.gxt.ui.client.widget.layout.BorderLayoutData;
    
    public class BorderLayoutExample extends LayoutContainer {
    
        public BorderLayoutExample() {
            setLayout(new BorderLayout());
    
            ContentPanel north = new ContentPanel();
            north.setHideCollapseTool(true);
            ContentPanel west = new ContentPanel();
            ContentPanel center = new ContentPanel();
            ContentPanel east = new ContentPanel();
            ContentPanel south = new ContentPanel();
    
            BorderLayoutData northData = new BorderLayoutData(LayoutRegion.NORTH, 100);
            northData.setCollapsible(true);
            northData.setFloatable(true);
            northData.setSplit(true);
            northData.setMargins(new Margins(5, 5, 0, 5));
    
            BorderLayoutData westData = new BorderLayoutData(LayoutRegion.WEST, 200);
            westData.setSplit(true);
            westData.setCollapsible(true);
            westData.setMargins(new Margins(5));
    
            BorderLayoutData centerData = new BorderLayoutData(LayoutRegion.CENTER);
            centerData.setMargins(new Margins(5, 0, 5, 0));
    
            BorderLayoutData eastData = new BorderLayoutData(LayoutRegion.EAST, 200);
            eastData.setSplit(true);
            eastData.setCollapsible(true);
            eastData.setMargins(new Margins(5));
    
            BorderLayoutData southData = new BorderLayoutData(LayoutRegion.SOUTH, 100);
            southData.setSplit(true);
            southData.setCollapsible(true);
            southData.setFloatable(true);
            southData.setMargins(new Margins(0, 5, 5, 5));
    
            add(north, northData);
            add(west, westData);
            add(center, centerData);
            add(east, eastData);
            add(south, southData);
        }
    
    }

  2. #2
    Sencha User
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    This is currently not supported within BorderLayout. It may will be in future versions.

  3. #3
    Sencha User
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    Fixed in SVN.

Thread Participants: 1