1. #1
    Ext User
    Join Date
    Apr 2008
    Location
    Munich, Germany
    Posts
    43
    Vote Rating
    0
    flow is on a distinguished road

      0  

    Default [FIXED] BorderLayout: Heading of collapsed ContentPanel disappears

    [FIXED] BorderLayout: Heading of collapsed ContentPanel disappears


    Hello,

    Using:
    GXT Beta 4
    GWT 1.5 RC
    Hosted Mode

    I put a simple ContentPanel into the NORTH-region of a BorderLayout. The ContentPanel has a heading which is nicely rendered. On collapsing the northern region, the heading disappears.
    My code:
    Code:
    package com.soko.multibase.client;
    
    import com.extjs.gxt.ui.client.Style;
    import com.extjs.gxt.ui.client.Style.LayoutRegion;
    import com.extjs.gxt.ui.client.widget.ContentPanel;
    import com.extjs.gxt.ui.client.widget.Html;
    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.extjs.gxt.ui.client.widget.layout.FillLayout;
    import com.extjs.gxt.ui.client.widget.layout.FitLayout;
    import com.google.gwt.core.client.EntryPoint;
    import com.google.gwt.user.client.ui.RootPanel;
    
    /**
     * Entry point classes define <code>onModuleLoad()</code>.
     * 
     * @author huber, itestra GmbH
     * @version $Id: ClientTest.java,v 1.1 2008/06/04 15:52:48 huber Exp $
     */
    public class ClientTest implements EntryPoint {
    
        /**
         * This is the entry point method.
         */
        public void onModuleLoad() {
            final Viewport viewport = new Viewport();
            viewport.setLayout(new FillLayout());
    
            final ContentPanel cp = new ContentPanel();
    
            cp.setLayout(new BorderLayout());
            cp.setHeaderVisible(false);
    
            final ContentPanel northPanel = new ContentPanel();
            northPanel.setHeading("North Panel");
            northPanel.setFrame(true);
            northPanel.setLayout(new FitLayout());
            northPanel.add(new Html("<b>Big Text</b>"));
    
            BorderLayoutData borderLayoutData = new BorderLayoutData(LayoutRegion.NORTH);
            borderLayoutData.setSplit(true);
            borderLayoutData.setCollapsible(true);
            cp.add(northPanel, borderLayoutData);
    
            // Center Panel
            final ContentPanel centerContainer = new ContentPanel();
            centerContainer.setFrame(true);
            centerContainer.setHeading("Center");
            centerContainer.setLayout(new FitLayout());
            centerContainer.add(new Html("Center Text"));
    
            borderLayoutData = new BorderLayoutData(Style.LayoutRegion.CENTER);
            cp.add(centerContainer, borderLayoutData);
    
            viewport.add(cp);
            viewport.layout();
            RootPanel.get().add(viewport);
        }
    }
    I think, the collapse of a "BorderLayout"-element should behave as the collapse event on a ContentPanel, namely, preserve the heading.

    Thanks for your help (if it's not a bug),

    Flo~

  2. #2
    Sencha - GXT Dev Team darrellmeyer's Avatar
    Join Date
    May 2007
    Location
    Washington, DC
    Posts
    2,242
    Vote Rating
    2
    darrellmeyer is on a distinguished road

      0  

    Default


    Fix is in SVN.

  3. #3
    Ext User
    Join Date
    Apr 2008
    Location
    Munich, Germany
    Posts
    43
    Vote Rating
    0
    flow is on a distinguished road

      0  

    Default


    Thanks. Will wait eagerly for the next release

  4. #4
    Ext User
    Join Date
    Apr 2008
    Location
    Munich, Germany
    Posts
    43
    Vote Rating
    0
    flow is on a distinguished road

      0  

    Default


    Hi Darrell,

    the heading still disappears. :-(
    I added a line
    Code:
    borderLayoutData.setFloatable(false);
    to workaround http://extjs.com/forum/showthread.php?t=34187

Thread Participants: 1

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi