View Full Version : How do you make an Ext.Window resize based on form elements?

29 Dec 2009, 12:35 PM
My form elements have msgTarget: 'under' set and the error messages push the form elements off the window stage. there must be a layout or something that automatically allows the window to expand as these msgs appear.

The alternative is not as nice but it would be something like listening for some event and then doing a doLayout() or something

30 Dec 2009, 2:19 AM
No, there is no such layout.

A Window is an absolutely positioned element (with a shadow), so it can't automatically grow with it's content.

You'll have to create a task for the Ext.TaskMgr that reads the content height and adjusts the window height if required.