2012-03-10 387 views
0

我使面板(佈局:絕對)。extjs //我如何重新渲染絕對面板?

之後,我將項目添加到面板。

但我看不到那個項目。

這是需進行重新渲染,但我不知道如何重新渲染...

對不起我的英語,但是,我在英語新手..

謝謝!

這是絕對的,項目代碼

var centerItem = { 
xtype : 'image', 
src : "lib/Image/Paddle.png", 
x : 100, 
y : 100 

};

var arrayItem = new Array(); 

var centerRegion = Ext.create('Ext.form.Panel', { 
     title : 'Center Region', 
     region : 'center', 
     xtype : 'panel', 
     layout : 'absolute', 
     margins : '5 5 0 5', 
     id : 'designSpace', 
     items : this.arrayItem 
    }); 

Ext.onReady(function Startup() { 

arrayItem.push(centerItem); 

var Main = Ext.create('Ext.panel.Panel', { 
      width : '100%', 
      height : 960, 
      layout : 'border', 
      items : [{...... 
+0

請張貼一些代碼並指定您正在使用的ExtJs版本 – sha 2012-03-10 01:56:57

+0

對不起,沙。我會去做。謝謝! – 2012-03-10 08:51:19

+0

哦,對不起,我用Extjs4。我忘了。 – 2012-03-10 08:55:13

回答