{
TableDataInfo tableData = getTableData(widget);
cells = new Rectangle(tableData.x, tableData.y, tableData.width, tableData.height);
}
// fill grid cells
for (int x = cells.x; x < cells.right(); x++) {
for (int y = cells.y; y < cells.bottom(); y++) {
// ignore newly added widgets without real cell
if (x != -1 && y != -1) {
grid[y][x] = widget;
}