Hybrid View

  1. #1
    Sencha User
    Join Date
    Sep 2010
    Posts
    13
    Vote Rating
    0
    ryanrca is on a distinguished road

      0  

    Default panel with border layout only shows title bar

    Hi guys, I'm really hitting my head on the wall for this one.

    Eventually I want a two section border layout, with a form in "west" and a grid in "center". That wasnt working, so I simplified things a lot:
    Code:
        filter_panel = {
            title: 'filters',
            region: 'west',
            width: 150, 
            html: "<h2> FILTERS! </h2>",
        }
    
        center_panel={
            title: 'Center Panel', 
            region: 'center', 
            html: "<h2> GRID! </h2>",
        //    items: userGrid,
        }
    
        panel = new Ext.Panel({
            renderTo: 'user-grid',
            frame: false,
            title: "Publish Runs",
            layout: 'border',
            collapsible: true,
            autoWidth: true, 
            // autoHeight: true, 
            height: 800,     
            defaults: {
                collapsible: true,
                split: true,
            },
            items: [filter_panel, center_panel ]
        });
    But, no matter what I do, collapsable or not, the panel is empty. It just shows the title bar. I don't have a clue what is wrong.

    Thanks!

  2. #2
    Sencha User laurentParis's Avatar
    Join Date
    Aug 2010
    Location
    paris
    Posts
    246
    Vote Rating
    2
    laurentParis is on a distinguished road

      0  

    Default

    Code:
    filter_panel = {
        title: 'filters',
        region: 'west',
        width: 150, 
        html: "<h2> FILTERS! </h2>"
    }
    
    center_panel={
        title: 'Center Panel', 
        region: 'center', 
        html: "<h2> GRID! </h2>"
    }
    
    panel = new Ext.Panel({
        renderTo: document.body,
        frame: false,
        title: "Publish Runs",
        layout: 'border',
        collapsible: true,
        autoWidth: true, 
        // autoHeight: true, 
        height: 800,     
        defaults: {
            collapsible: true,
          split: true
        },
        items: [filter_panel, center_panel ]
    });

Similar Threads

  1. Title on Collapsed Panel in Border Layout
    By singha in forum Ext 3.x: Help & Discussion
    Replies: 7
    Last Post: 8 Sep 2011, 11:04 PM
  2. [2.2.1]Title bar does not collapse in border layout
    By jbjorgen in forum Ext 2.x: Bugs
    Replies: 8
    Last Post: 5 May 2009, 2:38 AM
  3. Removing Title Bar from Border Layout Regions
    By Eric24 in forum Ext 2.x: Help & Discussion
    Replies: 4
    Last Post: 14 May 2008, 3:17 PM
  4. 'north' position in nested layout always shows blue title bar
    By bwextjs in forum Ext 1.x: Help & Discussion
    Replies: 3
    Last Post: 2 Jul 2007, 4:33 PM

Thread Participants: 1