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