0

我制作面板(布局:绝对)。

之后,我将项目添加到面板。

但我看不到那个项目。

这是需要重新渲染,但我不知道如何重新渲染......

对不起我的英语,但是,我是英语新手..

谢谢!

这是绝对和项目代码

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 : [{......
4

1 回答 1

0

为什么你事后推它而不包含在定义中?

但实际上,您所有问题的水平表明您需要阅读 ExtJs 入门指南 - http://docs.sencha.com/ext-js/4-0/#!/guide/getting_started

尝试创建他们在那里做的样本,相信我你会让自己感觉更舒服。

于 2012-03-10T13:40:27.893 回答