PDA

View Full Version : [Solved]Can't a window just size itself!



Elijah
5 Aug 2010, 6:05 AM
I need to create a window that will just size to whatever is in it as the content may be wide or narrow.
How do I get it to do that?
Or does it not allow for this?

Condor
5 Aug 2010, 6:12 AM
No, Ext.Window will not do that automatically.

You will have to:
- Show the window
- Get the size of the body
- Add the size of the frame
- Update the size of the window