PDA

View Full Version : about layout :'table' ,Dynamic items from the add method the page Scroll abnormal



citynong
5 Jun 2014, 1:01 AM
about layout :'table' ,Dynamic items from the add method the page Scroll abnormal?

the code and the web page screen shot as follows:??



{
xtype: 'tabpanel',
region: 'center',
id: 'mainpanel',
animate: true,
activeTab: 0,
border: false,
plugins: new Ext.ux.TabCloseMenu(),
items: [
{
xtype: 'container',
title: 'test',
id: 'id001',
autoScroll: true,
baseCls: 'yubackground',
layout: {
type: 'table',
columns: 2,
tdAttrs: {
style: 'padding-bottom: 8px;padding-top: 3px;padding-left: 4px;padding-right: 4px;'
}
},
defaults: {
frame: false,
width: 450,
height: 300,
collapsible: false
},
items: [
]
}
]
}




var id001= Ext.getCmp('id001');
id001.add({
id: value.id,
title: value.title,
width: value.colspan == 2 ? (porletwidths - 25) : (porletwidths / 2 - 18),
height: 200,
border: false,
colspan: value.colspan,
collapsible: value.collapsible,
xtype: value.xtype,
columns: {
items: portalColumnSegments,
defaults: {
renderer: function (value, p, record) {
return '<div style="white-space:normal;">' + value + '</div>';
}
}
}
})



49234
The exception information below red box?
49235

citynong
5 Jun 2014, 5:47 PM
Who can help me