1. #1
    Sencha User
    Join Date
    Apr 2007
    Posts
    87
    Vote Rating
    0
    Cybjorg is an unknown quantity at this point

      0  

    Question Auto-expanding window based on content

    Auto-expanding window based on content


    I have a Ext 4 window with a couple collapsed fieldsets in it (see attached illustration, Figure 1). I would like for the window to automatically expand to fit the content once the fieldsets are expanded (see Figure 2). In reality, however, now that autoHeight has been discontinued in Ext 4, I am forced to set the window height with an absolute value. If I set the value too small, any expanding content ends up outside the confines of the window dimensions (see Figure 3). Thus, I'm forced to set a large window height in order to incorporate the expanded fieldsets, even if they are collapsed (see Figure 4).

    Is there any way to define autoHeight-style behavior to a window/panel so that it can grow/shrink when fieldsets are expanded/collapsed?

    Expanding Window.jpg

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    35,669
    Vote Rating
    746
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    If you don't give a height then autoHeight is assumed... should be at least.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User
    Join Date
    Apr 2007
    Posts
    87
    Vote Rating
    0
    Cybjorg is an unknown quantity at this point

      0  

    Default


    Quote Originally Posted by mitchellsimoens View Post
    If you don't give a height then autoHeight is assumed... should be at least.
    Mitchell, I've been building this in Ext Designer, so I haven't actually tested this in a working environment. Ext Designer adds a height and width to windows by default. When you remove the height declaration in Designer, you would expect the window to collapse down to its minimum value; instead it expands to fit the container (in this case, the Designer canvas). That's why I'm confused about the window behavior.

  4. #4
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    35,669
    Vote Rating
    746
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Try it outside of Designer... that shouldn't happen.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

Thread Participants: 1

Tags for this Thread

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar