2012-03-10 389 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

回答