-
26 Oct 2011 11:49 PM #1
Rendering problems in the second opening of a window
Rendering problems in the second opening of a window
This behavior occurs with version ext-4.1-pr1.
No problems with ext-4.0.2a / ext-4.0.7.
First time click on menus:
Attachment 28907
the application controller handle click this way:
the list window is defined as:Code:,onItemClick:function(menuItem) { // other items handling switch(menuItem.action) { case 'elencoTipologieEnte': var lte = Ext.ComponentQuery.query('listaTipologieEnte')[0]; if(lte && lte.length > 0 ) { lte.toFront(true); } else { lte = Ext.create('CpGev.view.tabelle.tipologie.ente.Lista',{ animateTarget: Ext.ComponentQuery.query('#btnTabelleTipologie')[0] }); var mv = Ext.ComponentQuery.query('mainView > container')[1]; mv.add(lte); lte.show(); } break; } // other items handling }
as result I get:Code:Ext.define('CpGev.view.tabelle.tipologie.ente.Lista', { alias :'widget.listaTipologieEnte' ,extend: 'Ext.window.Window' ,height: 480 ,iconCls: 'icon-tipologia-ente16' ,iconizedCls: 'icon-tipologia-ente32' ,initComponent: function() { var me = this; me.editing = Ext.create('Ext.grid.plugin.CellEditing', { clicksToEdit: 1 }); me.items = [{ columnLines: true ,columns: [{ dataIndex: 'id' ,sortable: true ,text: 'ID' ,width: 30 }, { dataIndex: 'descrizione' ,editor: { allowBlank: false ,selecteOnFocus: true ,xtype: 'textfield' } ,flex: 1 ,header: 'descrizione' ,itemId: 'descrizione' ,sortable: true }, { dataIndex: 'note' ,editor: { allowBlank: true ,selecteOnFocus: false ,xtype: 'textareafield' } ,flex: 1 ,header: 'note' ,itemId: 'note' ,sortable: true }] ,dockedItems: [{ items: [{ action: 'add' ,iconCls: 'icon-add16' ,id: 'aggiungiTipoEnte' ,disabled: false ,text: 'Nuova tipologia ente' }, { action: 'delete' ,disabled: true ,iconCls: 'icon-delete16' ,id: 'cancellaTipoEnte' ,scope: this ,text: 'Cancella tipologia ente' }, { action: 'sync' ,disabled: true ,iconCls: 'icon-sync16' ,id: 'syncTipoEnte' ,scope: this ,text: 'Sincronizza server' }] ,xtype: 'toolbar' }] ,id: 'gridTipologieEnte' ,multiSelect: true ,plugins: [me.editing] ,store: 'TipoEnte' ,viewConfig: { deferEmptyText: true ,forceFit: true ,emptyText: '<font color="red"><b>Tabella tipologie enti</b></font>' ,stripeRows:false ,trackOver: false } ,xtype: 'gridpanel' }]; me.callParent(arguments); } ,layout: 'fit' ,title : 'Elenco tipologie enti' ,width: 640 });
Attachment 28908
good!
but ... after close the window and clicking again the same button the result is:
Attachment 28909

something wrong with my code or it is a bug?
I'm blocked. Can't use the (good) speed improvements of ext-4.1-pr1.
regards,
diego
Thank you for reporting this bug. We will make it our priority to review this report.


Reply With Quote