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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T05:06:23+00:00 2026-05-27T05:06:23+00:00

I am migrating an application from ExtJS 3.x to v4 and have been having

  • 0

I am migrating an application from ExtJS 3.x to v4 and have been having some troubles with the TabPanel’s now that the “autoHeight” property has been removed. I know that if you do not explicitly define a height for the panel it is assumed to be “auto height”, but that is only true to a degree.

In ExtJS4, a tab panel with no height set will still have inline css height values set on the tab panel’s containing divs, and those heights are calculated from the initial height of each tab item’s content. And yes, if you update the height of any child components of the tab items, the height of the tab will be recalculated to fit it, or if the tab contains raw HTML and the tab’s update() method is used to change that content, its height again, will be adjusted to fit.

Where the issue is, in my application anyway, is that I update the raw HTML content of those tab’s using methods other than those in ExtJS’s framework, such as jQuery.html(). Since the tab panel is not being notified of this change to the content, it does not recalculate the height value of the tab.

To get around this all I want to do is ensure that the tab panel’s containing elements always are set to height:auto when rendered, re-rendered, or anything else. I’m assuming to accomplish this I would need to extend the TabPanel, but i don not know where to start as far as what methods to override, ect. Any thoughts?

  • 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-27T05:06:23+00:00Added an answer on May 27, 2026 at 5:06 am

    This is what I ended up doing. 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

I have a Grails application that I am migrating from 1.0.3 to 1.3.7 It
I have an application that I'm migrating from flex 3 to flex 4.5. In
My application has a homebrew logging class that I'm migrating to using log4j under
I am migrating an application from prototype 1.5 to prototype 1.7. Has anyone already
We are migrating from Remoting to WCF a very big application that makes intensive
I'm migrating an application from ColdFusion to ASP.Net MVC and have a little problem
We are migrating a server application from Delphi 7 to Delphi 2007 and having
Background: Migrating an application from ball of mud to MVC. Many classes contain HTML
I am migrating an application from .NET 1.1 to .NET 2.0. Should I remove
I'm currently working on migrating an application from MS-Access to MS SQL Server. In

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.