题
我制作面板(布局:绝对)。
后,我将项目添加到面板。
但我看不到那个项目。
这是需要重新呈现,但我不知道如何重新渲染... 抱歉我的英语,但是,我是英语新手..
谢谢!
这是绝对的,项目代码
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入门指南 - http://docs.sencha.com/ext-js/4-0/#!guide/getting_started
试图创建他们在那里做的样本,相信我,你会摔得更加舒适。
不隶属于 StackOverflow