2012-01-07 59 views
0

如果我使用FormPanel設置標題,Internet Explorer關閉,但是這對Chrome很有效。誰能告訴我爲什麼會發生這種情況?以下是完整的代碼:ExtJs4 BUG?關於FormPanel

Ext.onReady(function(){ 
    alert('1112233'); 
    Ext.tip.QuickTipManager.init(); 
    var main = Ext.create('Ext.panel.Panel', { 
     id : "main", 
     padding: '0 0 0 50', 
     height: 550, 
     width: 800, 
     layout: { 
      type: 'table', 
      columns: 1 
     }, 
     renderTo:Ext.getBody(), 
     items: [ 
      { 
       xtype: 'form', 
       height: 471, 
       width: 632, 
       title: 'My Form', //【Here Here !If do not set Title it's all right】 
       items: [ 
        { 
         xtype: 'datefield' 
        } 
       ] 
      } 
     ] 
    }); 
}); 

回答

1

您的代碼在IE8和IE9中工作。它也應該與IE7一起工作。

fiddle

你缺少了一些別的東西。可能是錯字!