Pregunta

Hago el panel (diseño: Absoluto).

Después, agrego artículos al panel.

pero no puedo ver ese artículo.

Esto es necesario re-render, pero no sé cómo reiniciar ...

Perdón por mi inglés, pero, soy novato en inglés ..

¡Gracias!

Este es absoluto y código de artículo

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

¿Fue útil?

Solución

¿Por qué lo empuja después y no incluyen en la definición?

Pero realmente, el nivel de todas sus preguntas sugiere que necesita leer la guía de inicio de EXTJS - http://docs.sencha.com/ext-js/4-0/#!/guide/getting_started

Trate de crear muestras que hacen allí y créeme que se cayerá mucho más cómodo.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top