Answered: WIndow size with a form

I have a window that has a filedset in it that can duplicate. There are two ways this window can be creating by asking for an edit or asking to create a new one.

both of these cases work fine on first call and the window snugly fits around the content and adding fieldset makes the window resize just fine. When it's closed I destroy it.

however when I first call the new case and then an edit case with multiple instances of the fieldset the window doesn't fit around it's content anymore and some of it is hidden. In the reverse order the window remains too large.

The last thing i see: you're using " layout:'auto'," this is bad. Why? Ext JS is not good (due to browser inconsistencies) at resizing window instances based on their child contents. The window should be statically sized and the appropriate layout utilized.