title: Python Maya UI doesn't resize to fit children
body: <p>I have a UI window done in Maya with Python which displays different attributes everytime an item is selected.</p>
  
  <p>I'd like the window to resize (expand and contract) as per the populated children (displayed attributes) in it.</p>
  
  <p>Any ideas ? or any flags I can use ? I tried resizeToFitChildren which doesn't seem to have any effect. Perhaps this should be combined with some other options/flags ?</p>
  
  <p>Thank you!
  Sravan</p>