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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T10:08:18+00:00 2026-05-23T10:08:18+00:00

I have an Ext.Panel with a ‘toolbar’ that will hold a variable amount of

  • 0

I have an Ext.Panel with a 'toolbar' that will hold a variable amount of content in a <div> that I want to ensure is large enough to contain all content. Is there a way to dynamically size the toolbar to fit its content?

When I add, say, multiple lines to the <div>, they are cut off. The layout: 'fit' property keeps it contained relative to the parent container, but how do I expand it to contain all child content?

The toolbar is defined in a panel as follows (it is then added to a 'card' Panel layout).

    var panelTitle = 'Old McStopher's Panel'
    this.listpanel = new Ext.Panel({
        title: panelTitle,
        items: this.list,
        layout: 'fit',
        dockedItems: {
            xtype: 'toolbar',
            html: '<div class="statsTpl">Old McStopher's Content</div>',
            title: panelTitle
        }
    });

I’m using SASS/SCSS. Is there a recommended way to do so with such? Or is there some property to set for the toolbar itself?

  • 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-23T10:08:19+00:00Added an answer on May 23, 2026 at 10:08 am

    So, the answer as of right now is to simply remove the xtype: 'toolbar'. The title does not show, but this is not an issue, as the <div> will have all needed content (including a title, if need be). Because the content is still in dockedItems, it still docks to the top and does not scroll like the this.list content. So, one can debate if this is technically fitting a “toolbar”, but the end result of dynamically fitting the top content is achieved.

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

Sidebar

Related Questions

I have a scrollable panel that shows content larger than the screen new Ext.Panel({
I have an Ext Js panel that I am adding to my main TabPanel.
In Sencha Touch, I often need to have an Ext.DataView panel that contains a
I have to edit data inside my template that is use for Ext.Panel. How
I have a layout that looks like the following: Ext.Viewport{ Ext.Panel{ Ext.Panel{ Ext.TabPanel{ Ext.Panel{
I have an Ext.grid.Panel and i want to validate user input: there is a
I have read that gwt-ext is slow and it seems too bulky. How does
I have a web application that uses Ext-JS 2.2. In a certain component, we
When I have NSString with /Users/user/Projects/thefile.ext I want to extract thefile with Objective-C methods.
I have a page with a toolbar on it, that is added through apply

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.