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 6918791
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T09:54:16+00:00 2026-05-27T09:54:16+00:00

This was pretty easy to do in 3.x, simply by setting the autoHeight property

  • 0

This was pretty easy to do in 3.x, simply by setting the “autoHeight” property of the TabPanel and the same for its children items via the “defaults” config. However it I have yet to seen a way to accomplish this in 4.x. The tabs do size to fit the initial height of their contents, however if the height of that content changes for any reason after init, the tab content is hidden/scrolled.

I did some searching already and in sencha’s official forums about this subject the most commonly suggested solution was to configure the tabpanel’s parent container’s layout as “fit”, setting align to “stretch, ect. However in my case, the TabPanel is not a child of another Ext component, it is “renderTo”‘ed a straight non-ext generated that sits somewhere in the body of my page, so these solutions wouldn’t apply.

Any ideas?

  • 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-05-27T09:54:17+00:00Added an answer on May 27, 2026 at 9:54 am

    This was my solution in case any one was interested: It’s definitely not ideal, pretty hacky but it seems to work ok. Maybe someone will better see what I’m try to accomplish now, and can come up with a better implementation 🙂

    Ext.define('Ext.tab.AutoHeightPanel', {
        extend: 'Ext.tab.Panel',
        alias: 'widget.autoheighttabs',
    
        constructor: function(cnfg){
            this.callParent(arguments);
            this.initConfig(cnfg);
            this.on('afterlayout', this.forceAutoHeight, this);
            this.on('afterrender', this.forceAutoHeight, this);
            this.on('resize', this.forceAutoHeight, this);
        },
    
        forceAutoHeight: function(){
            this.getEl().applyStyles({height : 'auto', overflow : 'visible'});
            this.items.each(function(item, idx, len) {
                if(Ext.isDefined(item.getEl())) item.getEl().applyStyles({height : 'auto', overflow : 'visible'});
            });
        }
    });  
    

    You may want to add a ‘margin-bottom’ value to the style config of your tab panel to prevent content from butting up against the bottom of the panel.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

As outlined by this guys post, blocking IP's via PHP is pretty easy. However,
I'm pretty sure this is an easy one. I simply want to return a
I assume this is pretty easy so here goes; I'm trying to execute these
this is prob pretty easy but if someone could explain the easiest way to
I thought this would be pretty easy but I'm running into all sorts of
I think this is a pretty easy question...How do I make a asp.net function
I have a feeling that this query is pretty easy to construct, I just
I'm using sqlite3 and this would be pretty easy if it supported TOP syntax
Getting friends of friend are pretty easy, I got this which seems to work
Pretty sure there is an easy answer to this, but just can't find the

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.