Results 1 to 2 of 2

Thread: Correct way to size a panel

  1. #1
    Sencha User
    Join Date
    Dec 2007
    Posts
    30
    Vote Rating
    0
      0  

    Default Correct way to size a panel

    I have a panel with an hbox layout and two child items. Basically I want to the panel to size itself (height-wise) based on the child items. The child items do not have a fixed height.

    If do not set a height on my panel, it collapses to a single pixel in height. Is there something I'm doing wrong here? Currently I'm working on writing a listener which checks the height of the child items and resizes the parent based on the tallest child. This seems like a lot of work for something that should be simple.

    Any help is appreciated.

  2. #2
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Bédoin/Redwood City
    Posts
    30,645
    Answers
    15
    Vote Rating
    60
      0  

    Default

    It should Just Work on 4.1

    As long as the child items yield a height upon layout, then the Panel should acquire their height.

    Of course we need to see code.
    Longtime Sencha engineer. Now surplus to requirements apparently...

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
  •