Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7762595
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T14:26:49+00:00 2026-06-01T14:26:49+00:00

I have a panel whose items are a list and a panel like below

  • 0

I have a panel whose items are a list and a panel like below

enter image description here

When I click on a button, I want to hide this panel. So far, I managed to do that, but this is what I get

enter image description here

I would like to know how to remove this grey space form the bottom of the panel.

I already this but it’s not working :

this.toolsPnl.hide({type:'slide', direction:'up'});
this.doComponentLayout();
this.doLayout();

Update : Code

this.pasteBtn = new Ext.Button({
    cls:'paste-copy-tools-panel',
    text: 'Coller',
    ui: 'normal',
    handler : this.onPasteBtnTap,
    scope:this
});

this.cancelBtn = new Ext.Button({
    cls:'cancel-copy-tools-panel',
    text: 'Annuler',
    ui: 'normal',
    handler: this.onCancelBtnTap,
    scope:this
});

this.toolsPnl = new Ext.Panel({
    layout:{type:'hbox', align:'stretch'},
    height:40,
    cls:'document-tools-panel',
    hidden:true,
    items:[this.pasteBtn,this.cancelBtn]
});

this.currentFolderPnl = new Ext.Panel({
    cls:'document-current-folder-panel',
    html:'/'
});

this.list = new Ext.List({
    flex:1,
    cls:'document-list',
    id: 'document-list',
    store: app.stores.Document,
    itemTpl: app.templates.document
});

app.views.DocumentList.superclass.constructor.call(this, {
    selectedCls : "x-item-selected",
    dockedItems: [{
        xtype: 'toolbar',
        ui:'dark',
        title: 'Documents',
        items:[this.backBtn,{xtype:'spacer'},this.newBtn]
    }],
    layout: 'vbox',
    items: [
        this.currentFolderPnl,
        this.list,
        this.toolsPnl,
    ]
});
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T14:26:51+00:00Added an answer on June 1, 2026 at 2:26 pm

    May help you with some hack. The main trick is in fixListHeight function, but for showing tools panel for the first time I have to call doComponentLayout for its container first. Don’t know why this functionality doesn’t work out of the box… have the feeling there is something I have missed. Nevertheless, here is the code.

    new Ext.Application({
        launch: function() {
            // helper property
            // indicates whether toolsPnl was shown already
            this.first = true;
            this.viewport = new Ext.TabPanel({
                fullscreen: true,
                layout: 'card',
                dockedItems: [{
                    xtype: 'toolbar',
                    dock: 'top',
                    items: [{
                        xtype: 'spacer'
                    }, {
                        text: 'show',
                        listeners: {
                            tap: function (btn) {
                                var panel = Ext.getCmp('toolsPnl');
                                if (panel.isHidden()) {
                                    panel.show({type:'slide', direction:'up'});
                                    btn.setText('hide');
                                } else {
                                    panel.hide({type:'slide', direction:'up'});
                                    btn.setText('show');
                                    this.fixListHeight();
                                }
                            },
                            scope: this
                        }
                    }]
                }],
                tabBar: {
                    layout: {
                        type: 'fit'
                    }
                },
                tabBarDock: 'bottom',
                items: [{
                    title: 'Some tabs here...',
                    id: 'docTab',
                    iconCls: 'favorites',
                    layout: 'card',
                    dockedItems: [{
                        id: 'toolsPnl',
                        dock: 'bottom',
                        html: 'Tools panel',
                        style: {
                            'background-color': 'lightblue',
                            'line-height': '2em',
                            'text-align': 'center',
                            'height': '40px',
                            'width': '100%'
                        },
                        hidden:true,
                        listeners: {
                            show: function () {
                                if (this.first) {
                                    Ext.getCmp('docTab').doComponentLayout();
                                    this.fixListHeight();
                                    this.first = false;
                                }
                                Ext.defer(function () {
                                    this.fixListHeight(-1);
                                }, 250, this);
                            },
                            scope: this
                        }
                    }],
                    items : [{
                        xtype: 'list',
                        id: 'docList',
                        itemTpl: '{item}',
                        store: new Ext.data.Store({
                            data: [{item: 'Some data in the list...'}],
                            fields: ['item']
                        })
                    }]
                }]
            });
            this.fixListHeight = function (direction) {
                var panel = Ext.getCmp('toolsPnl'),
                    tab = Ext.getCmp('docTab'),
                    list = Ext.getCmp('docList'),
                    el,
                    h = list.getHeight(),
                    dh = panel.getHeight(),
                    dir = direction || 1;
                el = tab.getEl().child('.x-panel-body');
                el.setHeight(h + dh * dir);
                el.child('.x-list').setHeight(h + dh * dir);
                el.down('.x-scroller').setHeight(h + dh * dir);
            };
        }
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a border layout whose center panel is defined like the below. {
I have panel that is using group layout to organize some label. I want
I would like use a panel whose children have coordinates specified as percentage of
I have a panel that has lots of labels and checkboxes. I want to
In WPF I have a stack panel whose items control defines a data template.
I have an asp:Panel whose default button is set to Save button of the
I have Panel with a BottomToolbar . I want to add and remove dynamically
I have a panel on an aspx page which contains an UpdatePanel. This panel
I have an Panel control that I need to maintain position across postbacks. I
I have a Panel and I am adding controls inside this panel. But there

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.