Results 1 to 4 of 4

Thread: Unable to modify Accordion Panel height

  1. #1
    Sencha User
    Join Date
    Apr 2012
    Posts
    7
    Vote Rating
    0
      0  

    Default Unanswered: Unable to modify Accordion Panel height

    HI,
    I have created accordion panel.
    Inside accordion panel I have added 3 panel.
    I need to modify each panel's height differently,
    How do I set that?
    Currently all pane's height is same

  2. #2
    Sencha User friend's Avatar
    Join Date
    Apr 2011
    Posts
    895
    Answers
    106
    Vote Rating
    27
      0  

    Default

    I think you have a basic misunderstanding of how an Accordion layout works. You can only set the height of the parent panel. The height of all child panels are managed by the Accordion layout.

    Note this quote from the API documentation:

    This is a layout that manages multiple Panels in an expandable accordion style such that only one Panel can be expanded at any given time.
    The expanded panel's height is automatically managed by the Accordion layout to use the maximum space available for height.

  3. #3
    Sencha User
    Join Date
    Apr 2012
    Posts
    7
    Vote Rating
    0
      0  

    Default

    Thanks,
    So there is there any way that I can change height of accordion panel?

    Or If I want to implement like that, how do I do that?

  4. #4
    Sencha User friend's Avatar
    Join Date
    Apr 2011
    Posts
    895
    Answers
    106
    Vote Rating
    27
      0  

    Default

    You can directly set the height of the parent container which uses the Accordion layout.

    You could also use a Border layout where the center region panel uses an Accordion layout. This would cause the height of the Accordion panel to auto grow/shrink based on available space within the browser.

Tags for this Thread

Posting Permissions

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