PDA

View Full Version : Issue In Table layout



kirubakar
17 Mar 2014, 3:42 AM
When i'm trying to add the items to the table, getting error "Uncaught IndexSizeError: Index or size was negative, or greater than the allowed value."

View
--------
Ext.define('DepteditlayoutView', {
extend: 'Ext.panel.Panel',
alias: 'widget.depteditlayoutview',
autoScroll: true,
id: 'depteditlayoutview',


layout: {
type: 'table',
columns: 2
},
});

Controller
------------
items = [
{
title: 'Item 1',
rowspan: 2,
height: 410
},
{
title: 'Item 2',
rowspan: 2,
height: 410
},
{
title: 'Item 3',
rowspan: 0,
height: 205
},
{
title: 'Item 4',
rowspan: 0,
height: 205
}
];

this.getDepteditlayoutViewer().add(items );

Gary Schlosberg
17 Mar 2014, 4:45 AM
I haven't seen that error. Any chance you can post some code that reproduces it? In which version of ExtJS are you seeing this?