Results 1 to 2 of 2

Thread: Accordion doesn't fill available height

  1. #1
    Sencha Premium User
    Join Date
    Jun 2011

    Default Accordion doesn't fill available height

    I'm upgrading my GXT app from GXT2 to GXT4 and using an accordian layout in the WEST panel of my Border Layout.

    The layout gets initialised as part of the onAfterFirstAttach event and this includes creating the individual ContentPanels. For some reason the accordion doesn't fill the available height - a space is left at the bottom of the panel as can be seen in the attached.

    If I resize the browser the panel then resizes correctly and all is fine. This leads me to thinking my code that sets up the layout etc. is correct but I may have a timing problem - i.e. the creation/layout of the accordion is maybe happening too soon in the rendering process.

    Any help or pointers would be greatly received.

    Attached Images Attached Images

  2. #2
    Sencha Sr Product Manager
    Join Date
    Jan 2012
    Arlington, WA


    Typically I find when the child container is not sizing as expected usually leads to the parent container not passing down the size to the child container. This usually happens if the parent container is a flow container, or the some grand parent is. Or when adding a child container does not have layout data set. More on that here:

    If you could mock up an example to illustrate your issue, I could help provide options to fix it. If you want to try listing your containers as a small text tree with the sizes or layoutdata, might provide hints. The quickest is a mock up that I can run locally and send back options.

    Does that help?

Similar Threads

  1. Replies: 4
    Last Post: 4 Apr 2013, 2:11 AM
  2. [FIXED] [] Android 2.3.7: KitchenSink doesn't fill screen height.
    By thijsbroes in forum Sencha Touch 2.x: Bugs
    Replies: 3
    Last Post: 16 Jul 2012, 10:49 PM
  3. [CLOSED] List height is 0px if a height is not specified (should stretch to fill)
    By Marc-QNX in forum Sencha Touch 2.x: Bugs
    Replies: 2
    Last Post: 13 Feb 2012, 6:44 AM
  4. Replies: 0
    Last Post: 3 Jun 2011, 3:36 PM
  5. [2.0] Accordion / fill
    By temporary in forum Sencha Ext JS Q&A
    Replies: 1
    Last Post: 17 Jan 2008, 9:49 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts