Results 1 to 3 of 3

Thread: A panel doesn't resize properly after it has been collapsed

  1. #1
    Ext JS Premium Member
    Join Date
    Mar 2008
    Posts
    2

    Default A panel doesn't resize properly after it has been collapsed

    Using the beta 1 and all the previous preview releases.

    The panel doesn't resize properly after it has been collapsed.

    I have a panel with no size or layout specified. The panel displays and resizes correctly to start with. However once I have collapsed it, it fails to resize when the window is resized. Below are my test codes:

    new Ext.container.Viewport({
    items: {
    xtype : "panel",
    id: "mypanel",
    collapsible : true,
    title : "my title",
    html : "panel body"
    }
    });

    Is there any get-around?

  2. #2
    Sencha User Animal's Avatar
    Join Date
    Mar 2007
    Location
    Bédoin/Nottingham
    Posts
    30,891

    Default

    And as the docs emphasize, which layout scheme are you requesting that the Viewport uses to manage the size of its child items(s)?

  3. #3
    Ext JS Premium Member
    Join Date
    Mar 2008
    Posts
    2

    Default The panel container has a layout of "auto"

    The top level container of our application scrolls vertically. The panel itself may have a layout such as a "vbox" of autoSize = true.

    My example uses the viewport and a simple panel to reproduce this problem. The panel resizes fine before it is collapsed. It got stuck with a width after it has collapsed.

Similar Threads

  1. Collapsed panel does not resize
    By samshu in forum Ext 3.x: Help & Discussion
    Replies: 12
    Last Post: 28 Mar 2011, 2:35 AM
  2. Grid doesn't resize( column layout) properly - can anybody help
    By sajiltk in forum Ext 3.x: Help & Discussion
    Replies: 6
    Last Post: 19 Oct 2010, 5:31 AM
  3. overlay doesn't resize properly
    By cabennett85 in forum Sencha Touch 1.x: Discussion
    Replies: 2
    Last Post: 30 Jul 2010, 10:10 PM
  4. Tab Panel items are not Resize properly
    By majid mir in forum Ext 3.x: Help & Discussion
    Replies: 1
    Last Post: 25 Feb 2010, 12:30 AM
  5. border layout on grid doesn't resize properly in IE
    By paulwang727 in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 11 Nov 2008, 10:40 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
  •