giraffezw
14 Mar 2011, 6:56 AM
Hi,
after the Update from 3.0 to 3.3.1 it seem's that something has changed in the rendering process.
Before the update I didnt use the deferredRender: true config inside the tabpanel and everything was rendering without a problem.
The components get rendered during the loading process of the viewport.
Now (3.3.1) when the viewport gets rendered all items of the cardlayout are rendered first on top of the site (see screenshot). After rendering the site looks "normal" again.
To get thinks work, I have to use deferredRender: true. But the defered rendering looks really ugly and some things got broken, cause panels are not there yet, when a user clicks the treepanel, which sets the activeitem inside the cardpanel.
var showViewport = function() {
viewport1 = new Ext.Viewport({
id: 'viewport',
border : false,
layout : 'ux.center',
items : [tabsNestedLayouts],
renderTo: Ext.getBody()
});
viewport1.doLayout();
};
the tabsNestedLayouts looks like:
(property, options, ... seemed useless for this example and have been deleted)
var tabsNestedLayouts = {
xtype: 'panel'
,id: ''
,width:"100%"
,layout: 'border'
,items: [{
region: 'north'
,height: 80
,maxSize: 80
,split: true
,contentEl: ''
},{
xtype: 'tabpanel'
,id:''
,plain: true
,region: 'center'
,activeTab: 0
,items: [{
layout: 'border'
,hideMode: Ext.isIE ? 'offsets' : 'display'
,items: [
treePanel
,{
xtype: 'panel'
,id: ''
,layout: 'card'
,layoutConfig: {
deferredRender: true
}
,region:'center'
,border: false
,activeItem: 0
,items: [
{
xtype: 'documentgrid'
},{
xtype: 'formulargrid'
},{
xtype: 'usergrid'
},{
xtype: 'contactgrid'
},{
xtype: 'messagegrid'
}
]
},{
xtype:'panel'
,id: ''
,region: 'south'
,autoScroll: true
,html: ''
,plugins: new Ext.ux.collapsedPanelTitlePlugin()
}]
}]
}]
};
after the Update from 3.0 to 3.3.1 it seem's that something has changed in the rendering process.
Before the update I didnt use the deferredRender: true config inside the tabpanel and everything was rendering without a problem.
The components get rendered during the loading process of the viewport.
Now (3.3.1) when the viewport gets rendered all items of the cardlayout are rendered first on top of the site (see screenshot). After rendering the site looks "normal" again.
To get thinks work, I have to use deferredRender: true. But the defered rendering looks really ugly and some things got broken, cause panels are not there yet, when a user clicks the treepanel, which sets the activeitem inside the cardpanel.
var showViewport = function() {
viewport1 = new Ext.Viewport({
id: 'viewport',
border : false,
layout : 'ux.center',
items : [tabsNestedLayouts],
renderTo: Ext.getBody()
});
viewport1.doLayout();
};
the tabsNestedLayouts looks like:
(property, options, ... seemed useless for this example and have been deleted)
var tabsNestedLayouts = {
xtype: 'panel'
,id: ''
,width:"100%"
,layout: 'border'
,items: [{
region: 'north'
,height: 80
,maxSize: 80
,split: true
,contentEl: ''
},{
xtype: 'tabpanel'
,id:''
,plain: true
,region: 'center'
,activeTab: 0
,items: [{
layout: 'border'
,hideMode: Ext.isIE ? 'offsets' : 'display'
,items: [
treePanel
,{
xtype: 'panel'
,id: ''
,layout: 'card'
,layoutConfig: {
deferredRender: true
}
,region:'center'
,border: false
,activeItem: 0
,items: [
{
xtype: 'documentgrid'
},{
xtype: 'formulargrid'
},{
xtype: 'usergrid'
},{
xtype: 'contactgrid'
},{
xtype: 'messagegrid'
}
]
},{
xtype:'panel'
,id: ''
,region: 'south'
,autoScroll: true
,html: ''
,plugins: new Ext.ux.collapsedPanelTitlePlugin()
}]
}]
}]
};