Results 1 to 2 of 2

Thread: How can I auto adjust ContentPanel size ?

  1. #1
    Sencha User
    Join Date
    Jul 2013
    Posts
    5
    Answers
    2

    Default Answered: How can I auto adjust ContentPanel size ?

    Hi, I am implementing a custom widget that consists of a ContentPanel containing two other ContentPanel s, the three are collapsible. I'm trying to achieve that the container CP change size auto adjusting when the contained CPs expand/collapse so the whole widget fits in a form and resizes automatically. I've tried with many different components and layout containers. I'm migrating a system from gxt 2 version and in that version that was possible with contentPanel and a layout manager.
    Anybody can help?
    Thank you
    Esteban

  2. Solved it by wrapping components (FieldSet, ContentPanel) inside a FlowLayoutContainer and not specifying height in any of the contained items.
    Also, for this behaviour, had to change VBoxLayoutContainer to VerticalLayoutContainer and HBox to HorizontalLayoutContainer. Now the wrapping FieldSet adjusts its height according to the containede elements height.

  3. #2
    Sencha User
    Join Date
    Jul 2013
    Posts
    5
    Answers
    2

    Default

    Solved it by wrapping components (FieldSet, ContentPanel) inside a FlowLayoutContainer and not specifying height in any of the contained items.
    Also, for this behaviour, had to change VBoxLayoutContainer to VerticalLayoutContainer and HBox to HorizontalLayoutContainer. Now the wrapping FieldSet adjusts its height according to the containede elements height.

Similar Threads

  1. how can i adjust scrollbar position with a Ext.ContentPanel
    By snowway in forum Ext 1.x: Help & Discussion
    Replies: 1
    Last Post: 26 Apr 2007, 10:33 PM
  2. Last column to auto-adjust
    By KimH in forum Ext 2.x: Help & Discussion
    Replies: 11
    Last Post: 4 Mar 2007, 7:06 PM
  3. Adjust the height of a ContentPanel in code ?
    By klubas in forum Ext 1.x: Help & Discussion
    Replies: 1
    Last Post: 13 Feb 2007, 5:08 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
  •