title: ExtJs 4 - Window.show() - window size is very small
body: <p>I'm getting to grips with ExtJs 4 and having an issue showing a modal window upon a double click event on a grid.</p>
  
  <p>A listener defined on grid component:</p>
  
  <pre><code>"listeners": {
      "itemdblclick": function() { 
          var win =Ext.getCmp('myCmp');
          win.myWindow.show(); 
      }
  }
  </code></pre>
  
  <p>previously defined property of myCmp to be a window component:
  (I've used the parent container object myCmp as I'm code generating the javascript to build the ExtJs config)</p>
  
  <pre><code>myCmp.myWindow = Ext.create('Ext.window.Window',{
  "layout": "fit",
  "items": [
   ....     
  ],
  "title": "Hello Window",
  "width": "300",
  "height": "300",
  "id": "myWindow"
  });
  </code></pre>
  
  <p>The logic works well, I double click the grid, the window object is present (myCmp.myWindow) but when i call show() the window is displayed very small (6px x 6px).</p>
  
  <p>if I change the handler to :</p>
  
  <pre><code>Ext.create('Ext.window.Window',{
  "layout": "fit",
  "items": [
   ....     
  ],
  "title": "Hello Window",
  "width": "300",
  "height": "300",
  "id": "myWindow"
  }).show();
  </code></pre>
  
  <p>It works ok. obviously this is creating a new window instance.</p>
  
  <p>Any ideas?  am I doing this right?</p>
  
  <p>Thanks in advance</p>
  
  <p>sam</p>