【发布时间】:2012-03-27 10:43:33
【问题描述】:
我制作面板(布局:绝对)。
之后,我将项目添加到面板。
但我看不到那个项目。
这是需要重新渲染,但我不知道如何重新渲染...
对不起我的英语,但是,我是英语新手..
谢谢!
这是绝对和项目代码
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 : [{......
【问题讨论】:
-
请发布一些代码并指定您正在使用的 ExtJs 版本
-
对不起,沙。我会去做。谢谢!
-
哦,对不起,我使用 Extjs4。我忘记了。